-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsynclfo_peripherials.h
More file actions
38 lines (31 loc) · 1.01 KB
/
synclfo_peripherials.h
File metadata and controls
38 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @file synclfo_peripherials.h
* @author Adam Wonak (https://github.com/awonak)
* @brief Arduino pin definitions for the Modulove SyncLFO module.
* @version 0.1
* @date 2024-06-28
*
* @copyright Copyright (c) 2024
*
*/
#ifndef SYNCLFO_PERIPHERIALS_H
#define SYNCLFO_PERIPHERIALS_H
namespace modulove {
namespace synclfo {
// GPIO Pin mapping.
const uint8_t P1 = 0; // Knob 1
const uint8_t P2 = 1; // Knob 2
const uint8_t P3 = 3; // Knob 3
const uint8_t P4 = 5; // Knob 4
const uint8_t P_COUNT = 4; // Number of knobs.
const uint8_t KNOB_PINS[P_COUNT] = {P1, P2, P3, P4}; // Array of knob GPIO pin identifiers.
const uint8_t GATE_IN = 3; // Digital Input
const uint8_t CV_OUT = 10; // CV Output for current step
// Synchronizer hardware.
const uint8_t B1_PIN = A2; // Button 1 (bodged from original D13)
const uint8_t B2_PIN = 12; // Button 2
const uint8_t LED1_PIN = 11; // LED 1
// const uint8_t LED2_PIN = 10; // LED 2
} // namespace synclfo
} // namespace modulove
#endif