]> oss.titaniummirror.com Git - rgblamp.git/commit
Add persistent configuration
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 17 Dec 2011 18:30:53 +0000 (11:30 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 17 Dec 2011 18:30:53 +0000 (11:30 -0700)
commitc3567b7908dd3b08dd7a8c2d051991bf50670a42
tree1c2748ce605634d92f67f7bd516e25da0f1d4219
parente2680ea449bfc8a72e1d03fbfbec76c83fa0bd18
Add persistent configuration

Save mode and color any time mode changes, or if in MODE_SOLID and
color changes.  Configuration is saved in internal EEPROM.  The
PIC16LF1933 claims 100K writes.  At 5 hrs per day, thats over 13
years of config writes assuming MODE_SOLID and a color change 4
times per year.

When the configuration changes, a 3 second timer is set.  When the
timer expires, then the configuration is written.  This should help
reduce reduce unnecessary EEPROM writes when the uesr is cycling
through the modes to find the one they want.
isr.c
main.c
task_defs.h
tmr_defs.h