Update TeensyUsbSlaveMidiClockMonitor.ino

Match OLED code with Leonardo example
pull/26/head
Jackson-Devices 1 year ago committed by GitHub
parent 3ccc0632c3
commit 67b4f0c73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino

@ -135,9 +135,17 @@ void loop() {
if (clock_state != uClock.state) { if (clock_state != uClock.state) {
clock_state = uClock.state; clock_state = uClock.state;
if (clock_state >= 1) { if (clock_state >= 1) {
u8x8->drawUTF8(0, 7, "playing"); u8x8->drawUTF8(0, 7, "Playing");
} else { } else {
u8x8->drawUTF8(0, 7, "stoped "); u8x8->drawUTF8(0, 7, "Stopped");
}
}
if (clock_mode != uClock.getMode()) {
clock_mode = uClock.getMode();
if (clock_mode == uClock.EXTERNAL_CLOCK) {
u8x8->drawUTF8(10, 0, "Slave ");
} else {
u8x8->drawUTF8(10, 0, "Master");
} }
} }
} }

Loading…
Cancel
Save