andrewdavidmackenzie / pigg

GUI for remote control of Raspberry Pi GPIO hardware
Apache License 2.0
237 stars 9 forks source link

Have porky persist the config in flash storage and restore on restart #612

Closed andrewdavidmackenzie closed 3 hours ago

andrewdavidmackenzie commented 2 weeks ago

At the moment, the config will be lost on restart or power loss/regain....

When the config of pins are received in porky, store each one in flash with ekv.

Restore all pin config it (if read successfully) on restart.

If a whole new config set is sent to porky, then it should delete the previous one in memory, unprogram the other pins, and then persist the new config in flash (pin by pin)