UI strings now in PROGMEM.

master
Holger Wirtz 6 years ago
parent 2a566a21df
commit 2150845e14
  1. 2
      MicroMDAEPiano.ino
  2. 14
      UI.hpp

@ -135,7 +135,7 @@ void setup()
// Debug output // Debug output
Serial.println(F("MicroMDAEPiano based on https://sourceforge.net/projects/mda-vst")); Serial.println(F("MicroMDAEPiano based on https://sourceforge.net/projects/mda-vst"));
Serial.println(F("(c)2018 H. Wirtz <wirtz@parasitstudio.de>")); Serial.println(F("(c)2018/2019 H. Wirtz <wirtz@parasitstudio.de>"));
Serial.println(F("https://codeberg.org/dcoredump/MicroMDAEPiano")); Serial.println(F("https://codeberg.org/dcoredump/MicroMDAEPiano"));
Serial.print(F("Data in PROGMEM: ")); Serial.print(F("Data in PROGMEM: "));
Serial.print(sizeof(epianoDataXfade), DEC); Serial.print(sizeof(epianoDataXfade), DEC);

@ -31,15 +31,16 @@ extern LiquidCrystal_I2C lcd;
LiquidMenu menu(lcd); LiquidMenu menu(lcd);
const char text1[] PROGMEM = "MicroMDAEPiano";
const char text2[] PROGMEM = "(c)parasiTstudio";
//const char text1[] PROGMEM = "";
// Welcome screen // Welcome screen
LiquidLine welcome_line1(1, 0, "MicroMDAEPiano"); LiquidLine welcome_line1(1, 0, text1);
LiquidLine welcome_line2(0, 1, "(c)parasiTstudio"); LiquidLine welcome_line2(0, 1, text2);
LiquidScreen welcome_screen(welcome_line1, welcome_line2); 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) void menu_init(void)
{ {
@ -51,7 +52,6 @@ void menu_init(void)
lcd.noAutoscroll(); lcd.noAutoscroll();
menu.add_screen(welcome_screen); menu.add_screen(welcome_screen);
menu.add_screen(main_screen);
menu.update(); menu.update();
} }
#endif #endif

Loading…
Cancel
Save