Rev 1910 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1910 | Rev 1977 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | #include "act_DotMatrix.h" |
2 | #include "act_DotMatrix.h" |
| 3 | 3 | ||
| 4 | |
4 | #if act_DotMatrix_USEEEPROM==1 |
| 5 | #include "act_DotMatrix_eeprom.h" |
5 | #include "act_DotMatrix_eeprom.h" |
| 6 | struct eeprom_act_DotMatrix EEMEM eeprom_act_DotMatrix = |
6 | struct eeprom_act_DotMatrix EEMEM eeprom_act_DotMatrix = |
| 7 | { |
7 | { |
| 8 | { |
8 | { |
| 9 | /*TODO: Define initialization values on the EEPROM variables here, |
9 | /*TODO: Define initialization values on the EEPROM variables here, |
| Line 96... | Line 96... | ||
| 96 | } |
96 | } |
| 97 | } |
97 | } |
| 98 | 98 | ||
| 99 | void act_DotMatrix_Init(void) |
99 | void act_DotMatrix_Init(void) |
| 100 | { |
100 | { |
| 101 | |
101 | #if act_DotMatrix_USEEEPROM==1 |
| 102 | if (EEDATA_OK) |
102 | if (EEDATA_OK) |
| 103 | { |
103 | { |
| 104 | ///TODO: Use stored data to set initial values for the module |
104 | ///TODO: Use stored data to set initial values for the module |
| 105 | blablaX = eeprom_read_byte(EEDATA.x); |
105 | blablaX = eeprom_read_byte(EEDATA.x); |
| 106 | blablaY = eeprom_read_word(EEDATA16.y); |
106 | blablaY = eeprom_read_word(EEDATA16.y); |