Subversion Repositories HomeAutomation

Rev

Rev 1910 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1910 Rev 1978
Line 40... Line 40...
40
uint16_t demoHighValue[4] = {0,0,0,0};
40
uint16_t demoHighValue[4] = {0,0,0,0};
41
uint8_t demoState[4] = {ACT_RGBW_DEMO_STATE_NOT_RUNNING, ACT_RGBW_DEMO_STATE_NOT_RUNNING, ACT_RGBW_DEMO_STATE_NOT_RUNNING,                  ACT_RGBW_DEMO_STATE_NOT_RUNNING};
41
uint8_t demoState[4] = {ACT_RGBW_DEMO_STATE_NOT_RUNNING, ACT_RGBW_DEMO_STATE_NOT_RUNNING, ACT_RGBW_DEMO_STATE_NOT_RUNNING,                  ACT_RGBW_DEMO_STATE_NOT_RUNNING};
42
 
42
 
43
uint8_t channel_to_send = 1;
43
uint8_t channel_to_send = 1;
44
void calculatePWM(uint8_t timer);
44
void calculatePWM(uint8_t timer);
45
#ifdef act_RGBW_USEEEPROM
45
#if act_RGBW_USEEEPROM==1
46
#include "act_RGBW_eeprom.h"
46
#include "act_RGBW_eeprom.h"
47
struct eeprom_act_RGBW EEMEM eeprom_act_RGBW =
47
struct eeprom_act_RGBW EEMEM eeprom_act_RGBW =
48
{
48
{
49
    {
49
    {
50
        ///TODO: Define initialization values on the EEPROM variables here, this will generate a *.eep file that can be used to store this values to the node, can in future be done with a EEPROM module and the make-scrips. Write the values in the exact same order as the struct is defined in the *.h file. 
50
        ///TODO: Define initialization values on the EEPROM variables here, this will generate a *.eep file that can be used to store this values to the node, can in future be done with a EEPROM module and the make-scrips. Write the values in the exact same order as the struct is defined in the *.h file. 
Line 108... Line 108...
108
#endif
108
#endif
109
 
109
 
110
 
110
 
111
void act_RGBW_Init(void)
111
void act_RGBW_Init(void)
112
{
112
{
113
#ifdef act_RGBW_USEEEPROM
113
#if act_RGBW_USEEEPROM==1
114
    if (EEDATA_OK)
114
    if (EEDATA_OK)
115
    {
115
    {
116
      ///TODO: Use stored data to set initial values for the module
116
      ///TODO: Use stored data to set initial values for the module
117
      pwmValue[0] = eeprom_read_word(EEDATA16.ch1);
117
      pwmValue[0] = eeprom_read_word(EEDATA16.ch1);
118
      pwmValue[1] = eeprom_read_word(EEDATA16.ch2);
118
      pwmValue[1] = eeprom_read_word(EEDATA16.ch2);