diff --git a/UI.hpp b/UI.hpp index 66f983a..a56673c 100644 --- a/UI.hpp +++ b/UI.hpp @@ -232,9 +232,9 @@ void setup_ui(void) { lcd.setFont(u8x8_font_amstrad_cpc_extended_f); #endif lcd.setCursor(1, 0); - lcd.print("MicroDexed"); + lcd.print(F("MicroDexed")); lcd.setCursor(0, 1); - lcd.print("(c)parasiTstudio"); + lcd.print(F("(c)parasiTstudio")); #ifdef I2C_DISPLAY // set special chars for scrollbar @@ -703,7 +703,7 @@ void lcdml_menu_display(void) } else { 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_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); } @@ -995,15 +995,15 @@ void UI_func_chorus_waveform(uint8_t param) { case 0: modulator.begin(WAVEFORM_TRIANGLE); - lcd.print("[TRIANGLE]"); + lcd.print(F("[TRIANGLE]")); break; case 1: modulator.begin(WAVEFORM_SINE); - lcd.print("[SINE ]"); + lcd.print(F("[SINE ]")); break; default: modulator.begin(WAVEFORM_TRIANGLE); - lcd.print("[TRIANGLE]"); + lcd.print(F("[TRIANGLE]")); break; } } @@ -1708,9 +1708,9 @@ void UI_func_volume(uint8_t param) for (uint8_t i = 0; i < LCD_cols; i++) { if (i < int((LCD_cols - 2) * configuration.vol / 100.0)) - lcd.print("*"); + lcd.print(F("*")); else - lcd.print(" "); + lcd.print(F(" ")); } lcd.show(1, 0, 1, "["); lcd.show(1, 15, 1, "]");