Showing banks and voices as number beginning from 1 instead of 0.

pull/4/head
Holger Wirtz 6 years ago
parent b67de68c77
commit 9cc7d58a63
  1. 10
      MicroDexed.ino
  2. 4
      dexed_sysex.h

@ -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

@ -24,9 +24,6 @@
*/
#include "config.h"
#ifdef I2C_DISPLAY
#include <LiquidCrystalPlus_I2C.h>
#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);

Loading…
Cancel
Save