Add pulse output configuration.

This commit is contained in:
2025-07-01 17:31:01 -07:00
parent 9849b10d61
commit a13397d7d2
9 changed files with 257 additions and 16 deletions

12
clock.h
View File

@ -39,6 +39,14 @@ class Clock {
SOURCE_LAST,
};
enum Pulse {
PULSE_NONE,
PULSE_PPQN_1,
PULSE_PPQN_4,
PULSE_PPQN_24,
PULSE_LAST,
};
void Init() {
NeoSerial.begin(31250);
@ -175,10 +183,6 @@ class Clock {
static void sendMIDIClock(uint32_t tick) {
NeoSerial.write(MIDI_CLOCK);
}
static void sendPulseOut(uint32_t tick) {
digitalWrite(PULSE_OUT_PIN, !digitalRead(PULSE_OUT_PIN));
}
};
#endif