Keeping large datasets tidy in an Arduino project
i'm working project using esp8266 wifi-connected ir blaster replicating tv remote. @ point i'd release project wild, useful need support wide variety of different tvs (at least 1 configuration per manufacturer).
with each remote having 20+ buttons, , i've tested far, each button produces 1 of 2 codes each time pressed, storing data in .c file under switch statement or series of #ifdefs has potential become wet mess potentially difficult add to.
is there cleaner way write project kind of data? maybe read in .txt or .json file @ compile time, selected single variable manufacturer of tv?
with each remote having 20+ buttons, , i've tested far, each button produces 1 of 2 codes each time pressed, storing data in .c file under switch statement or series of #ifdefs has potential become wet mess potentially difficult add to.
is there cleaner way write project kind of data? maybe read in .txt or .json file @ compile time, selected single variable manufacturer of tv?
have considered store ir codes in eeprom (external if esp not have eeprom or insufficient space, else internal).
Arduino Forum > Using Arduino > Programming Questions > Keeping large datasets tidy in an Arduino project
arduino
Comments
Post a Comment