Moving some more strings into PROGMEM.

pull/6/head
Holger Wirtz 5 years ago
parent ef104f6909
commit 9f7081b487
  1. 18
      UI.hpp

@ -232,9 +232,9 @@ void setup_ui(void) {
lcd.setFont(u8x8_font_amstrad_cpc_extended_f); lcd.setFont(u8x8_font_amstrad_cpc_extended_f);
#endif #endif
lcd.setCursor(1, 0); lcd.setCursor(1, 0);
lcd.print("MicroDexed"); lcd.print(F("MicroDexed"));
lcd.setCursor(0, 1); lcd.setCursor(0, 1);
lcd.print("(c)parasiTstudio"); lcd.print(F("(c)parasiTstudio"));
#ifdef I2C_DISPLAY #ifdef I2C_DISPLAY
// set special chars for scrollbar // set special chars for scrollbar
@ -703,7 +703,7 @@ void lcdml_menu_display(void)
} }
else { else {
lcd.setCursor((_LCDML_DISP_cols - 1), n); lcd.setCursor((_LCDML_DISP_cols - 1), n);
lcd.print(' '); lcd.print(F(" "));
} }
} }
} }
@ -948,7 +948,7 @@ void UI_func_chorus_frequency(uint8_t param)
lcd.setCursor(0, 1); lcd.setCursor(0, 1);
lcd_display_float(configuration.chorus_frequency / 10.0, 2, 1, false, true, false); lcd_display_float(configuration.chorus_frequency / 10.0, 2, 1, false, true, false);
lcd.print(" Hz"); lcd.print(F(" Hz"));
modulator.frequency(configuration.chorus_frequency / 10.0); modulator.frequency(configuration.chorus_frequency / 10.0);
} }
@ -995,15 +995,15 @@ void UI_func_chorus_waveform(uint8_t param)
{ {
case 0: case 0:
modulator.begin(WAVEFORM_TRIANGLE); modulator.begin(WAVEFORM_TRIANGLE);
lcd.print("[TRIANGLE]"); lcd.print(F("[TRIANGLE]"));
break; break;
case 1: case 1:
modulator.begin(WAVEFORM_SINE); modulator.begin(WAVEFORM_SINE);
lcd.print("[SINE ]"); lcd.print(F("[SINE ]"));
break; break;
default: default:
modulator.begin(WAVEFORM_TRIANGLE); modulator.begin(WAVEFORM_TRIANGLE);
lcd.print("[TRIANGLE]"); lcd.print(F("[TRIANGLE]"));
break; break;
} }
} }
@ -1708,9 +1708,9 @@ void UI_func_volume(uint8_t param)
for (uint8_t i = 0; i < LCD_cols; i++) for (uint8_t i = 0; i < LCD_cols; i++)
{ {
if (i < int((LCD_cols - 2) * configuration.vol / 100.0)) if (i < int((LCD_cols - 2) * configuration.vol / 100.0))
lcd.print("*"); lcd.print(F("*"));
else else
lcd.print(" "); lcd.print(F(" "));
} }
lcd.show(1, 0, 1, "["); lcd.show(1, 0, 1, "[");
lcd.show(1, 15, 1, "]"); lcd.show(1, 15, 1, "]");

Loading…
Cancel
Save