From bdf6aabe15a73a7dfbfbe6b553102fb6bb08d370 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 26 Feb 2022 19:30:47 +0000 Subject: [PATCH] Try printing to display (does not build yet) --- src/minidexed.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/minidexed.cpp b/src/minidexed.cpp index ee77078..5d2893d 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -155,6 +155,11 @@ void CMiniDexed::MIDIPacketHandler (unsigned nCable, u8 *pPacket, unsigned nLeng memset(reinterpret_cast(buf_name), 0, 11); // Initialize with 0x00 chars s_pThis->setName(buf_name); printf ("%s\n", buf_name); + // Print to optional HD44780 display + s_pThis->LCDWrite("\x1B[?25l"); // cursor off + CString String; + String.Format ("%i\n\r%s", pPacket[1], buf_name); + s_pThis->LCDWrite ((const char *) String); return; }