Added ability to set custom display address

This commit is contained in:
Mark Qvist 2023-09-19 18:32:29 +02:00
parent 948798cd3e
commit 2536c26f50
6 changed files with 37 additions and 3 deletions

View file

@ -1212,6 +1212,10 @@ void di_conf_save(uint8_t dint) {
eeprom_update(eeprom_addr(ADDR_CONF_DINT), dint);
}
void da_conf_save(uint8_t dadr) {
eeprom_update(eeprom_addr(ADDR_CONF_DADR), dadr);
}
bool eeprom_have_conf() {
if (EEPROM.read(eeprom_addr(ADDR_CONF_OK)) == CONF_OK_BYTE) {
return true;