It Works !!
This commit is contained in:
parent
3925e53270
commit
78e7f2365e
@ -20,7 +20,7 @@
|
|||||||
#define N_OUTPUTS 64
|
#define N_OUTPUTS 64
|
||||||
#define N_ACTIONS 64
|
#define N_ACTIONS 64
|
||||||
|
|
||||||
#define DEBUG 1 // 1 for noisy serial
|
#define DEBUG 0 // 1 for noisy serial
|
||||||
#define LED 17
|
#define LED 17
|
||||||
#define RELAY1 0
|
#define RELAY1 0
|
||||||
#define RELAY2 1
|
#define RELAY2 1
|
||||||
@ -59,6 +59,7 @@
|
|||||||
// Definitions
|
// Definitions
|
||||||
static uint8_t node_id PROGMEM= { NODE_ID };
|
static uint8_t node_id PROGMEM= { NODE_ID };
|
||||||
static OW_switch_t switches[N_SWITCHES] PROGMEM={
|
static OW_switch_t switches[N_SWITCHES] PROGMEM={
|
||||||
|
// nick, addr[8], event_tag[sw1, sw2]
|
||||||
{ 1, { 0x12, 0x5b, 0x27, 0x50, 0x0, 0x0, 0x0, 0x26 }, { 1, 9 } }
|
{ 1, { 0x12, 0x5b, 0x27, 0x50, 0x0, 0x0, 0x0, 0x26 }, { 1, 9 } }
|
||||||
};
|
};
|
||||||
static uint8_t switches_state[N_SWITCHES];
|
static uint8_t switches_state[N_SWITCHES];
|
||||||
@ -90,14 +91,15 @@ static event_t tx_events[N_EVENTS] PROGMEM={
|
|||||||
{ 6, 0x03, 0xff, 0x03, 0x06},
|
{ 6, 0x03, 0xff, 0x03, 0x06},
|
||||||
{ 7, 0x03, 0xff, 0x03, 0x07},
|
{ 7, 0x03, 0xff, 0x03, 0x07},
|
||||||
{ 8, 0x03, 0xff, 0x03, 0x08},
|
{ 8, 0x03, 0xff, 0x03, 0x08},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x01},
|
{ 9, 0x03, 0xff, 0x03, 0x09},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x02},
|
{ 10, 0x03, 0xff, 0x03, 0x01},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x03},
|
{ 10, 0x03, 0xff, 0x03, 0x02},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x04},
|
{ 10, 0x03, 0xff, 0x03, 0x03},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x05},
|
{ 10, 0x03, 0xff, 0x03, 0x04},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x06},
|
{ 10, 0x03, 0xff, 0x03, 0x05},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x07},
|
{ 10, 0x03, 0xff, 0x03, 0x06},
|
||||||
{ 9, 0x03, 0xff, 0x03, 0x08},
|
{ 10, 0x03, 0xff, 0x03, 0x07},
|
||||||
|
{ 10, 0x03, 0xff, 0x03, 0x08}
|
||||||
|
|
||||||
// { 0x01, 0x0CFF0103, 1, { 0xDE, 0xAD } },
|
// { 0x01, 0x0CFF0103, 1, { 0xDE, 0xAD } },
|
||||||
// { 0x01, 0x0102DEAD, 2, { 0xDE, 0xAD } },
|
// { 0x01, 0x0102DEAD, 2, { 0xDE, 0xAD } },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user