From 67b4f0c73cf79b1febc64083cc48f317595b03d0 Mon Sep 17 00:00:00 2001 From: Jackson-Devices <123213412+Jackson-Devices@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:39:00 +0100 Subject: [PATCH] Update TeensyUsbSlaveMidiClockMonitor.ino Match OLED code with Leonardo example --- .../TeensyUsbSlaveMidiClockMonitor.ino | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino b/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino index 2621fac..60055a5 100644 --- a/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino +++ b/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino @@ -135,9 +135,17 @@ void loop() { if (clock_state != uClock.state) { clock_state = uClock.state; if (clock_state >= 1) { - u8x8->drawUTF8(0, 7, "playing"); + u8x8->drawUTF8(0, 7, "Playing"); } 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"); } } }