diff --git a/MicroDexed.ino b/MicroDexed.ino index 669ebba..7d93459 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -228,10 +228,10 @@ void setup() #ifdef I2C_DISPLAY lcd.clear(); - lcd.show(0, 0, 2, bank); + lcd.show(0, 0, 2, bank+1); lcd.show(0, 2, 1, " "); lcd.show(0, 3, 10, bank_name); - lcd.show(1, 0, 2, voice); + lcd.show(1, 0, 2, voice+1); lcd.show(1, 2, 1, " "); lcd.show(1, 3, 10, voice_name); #endif @@ -383,7 +383,7 @@ bool handle_master_key(uint8_t data) EEPROM.update(EEPROM_OFFSET + EEPROM_VOICE_ADDR, num); update_eeprom_checksum(); #ifdef I2C_DISPLAY - lcd.show(1, 0, 2, voice); + lcd.show(1, 0, 2, voice+1); lcd.show(1, 2, 1, " "); lcd.show(1, 3, 10, voice_name); #endif @@ -418,13 +418,13 @@ bool handle_master_key(uint8_t data) #ifdef I2C_DISPLAY if(get_bank_name(bank)) { - lcd.show(0, 0, 2, bank); + lcd.show(0, 0, 2, bank+1); lcd.show(0, 2, 1, " "); lcd.show(0, 3, 10, bank_name); } else { - lcd.show(0, 0, 2, bank); + lcd.show(0, 0, 2, bank+1); lcd.show(0, 2, 10, " *ERROR*"); } #endif diff --git a/dexed_sysex.h b/dexed_sysex.h index ff6a30c..701e57c 100644 --- a/dexed_sysex.h +++ b/dexed_sysex.h @@ -24,9 +24,6 @@ */ #include "config.h" -#ifdef I2C_DISPLAY -#include -#endif extern bool sd_card_available; extern Dexed* dexed; @@ -35,7 +32,6 @@ extern uint8_t bank; extern uint8_t voice; extern char bank_name[11]; extern char voice_name[11]; -extern LiquidCrystalPlus_I2C lcd; bool get_bank_name(uint8_t b); bool load_sysex(uint8_t b, uint8_t v);