fix input pin masking
write use dispatch table
save/restore to eeprom
read temperature