[implement] save macro, swap state on EEPROM