From 2150845e147023b58c92e5d8aead0b76f1e7626a Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 3 May 2019 15:13:51 +0200 Subject: [PATCH] UI strings now in PROGMEM. --- MicroMDAEPiano.ino | 2 +- UI.hpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/MicroMDAEPiano.ino b/MicroMDAEPiano.ino index 8544e36..e23eb2a 100644 --- a/MicroMDAEPiano.ino +++ b/MicroMDAEPiano.ino @@ -135,7 +135,7 @@ void setup() // Debug output Serial.println(F("MicroMDAEPiano based on https://sourceforge.net/projects/mda-vst")); - Serial.println(F("(c)2018 H. Wirtz ")); + Serial.println(F("(c)2018/2019 H. Wirtz ")); Serial.println(F("https://codeberg.org/dcoredump/MicroMDAEPiano")); Serial.print(F("Data in PROGMEM: ")); Serial.print(sizeof(epianoDataXfade), DEC); diff --git a/UI.hpp b/UI.hpp index f26bad7..c0e9094 100644 --- a/UI.hpp +++ b/UI.hpp @@ -31,15 +31,16 @@ extern LiquidCrystal_I2C lcd; LiquidMenu menu(lcd); +const char text1[] PROGMEM = "MicroMDAEPiano"; +const char text2[] PROGMEM = "(c)parasiTstudio"; + +//const char text1[] PROGMEM = ""; + // Welcome screen -LiquidLine welcome_line1(1, 0, "MicroMDAEPiano"); -LiquidLine welcome_line2(0, 1, "(c)parasiTstudio"); +LiquidLine welcome_line1(1, 0, text1); +LiquidLine welcome_line2(0, 1, text2); LiquidScreen welcome_screen(welcome_line1, welcome_line2); -// Welcome screen -LiquidLine main_line1(0, 0, "Volume:"); -LiquidLine main_line2(0, 1, "Voice"); -LiquidScreen main_screen(main_line1, main_line2); void menu_init(void) { @@ -51,7 +52,6 @@ void menu_init(void) lcd.noAutoscroll(); menu.add_screen(welcome_screen); - menu.add_screen(main_screen); menu.update(); } #endif