Closed mgenrique closed 5 years ago
I edited de RF_Protocols.h for add a new protocol for the DIO Chacon RF: http://www.leroymerlin.es/fp/15632071/pack-mando-a-distancia-y-3-enchufes-di-o-
This values works for me: /*
SI_SEGMENT_VARIABLE(PROTOCOL_BUCKETS(DIO_emg)[], static uint16_t, SI_SEG_CODE) = { 260, 2714, 1300, 10400 }; SI_SEGMENT_VARIABLE(PROTOCOL_START(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(1) }; SI_SEGMENT_VARIABLE(PROTOCOL_BIT0(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(0), HIGH(0), LOW(2) }; SI_SEGMENT_VARIABLE(PROTOCOL_BIT1(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(2), HIGH(0), LOW(0) }; SI_SEGMENT_VARIABLE(PROTOCOL_END(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(3) };
.....
/* * DIO CHACON */ { { &PROTOCOL_BUCKETS(DIO_emg), ARRAY_LENGTH(PROTOCOL_BUCKETS(DIO_emg)) }, { &PROTOCOL_START(DIO_emg), ARRAY_LENGTH(PROTOCOL_START(DIO_emg)) }, { &PROTOCOL_BIT0(DIO_emg), ARRAY_LENGTH(PROTOCOL_BIT0(DIO_emg)) }, { &PROTOCOL_BIT1(DIO_emg), ARRAY_LENGTH(PROTOCOL_BIT1(DIO_emg)) }, { &PROTOCOL_END(DIO_emg), ARRAY_LENGTH(PROTOCOL_END(DIO_emg)) }, 32 }
I dont know how to do a Pull Request. Can someone do it for me?
I edited de RF_Protocols.h for add a new protocol for the DIO Chacon RF: http://www.leroymerlin.es/fp/15632071/pack-mando-a-distancia-y-3-enchufes-di-o-
This values works for me: /*
if EFM8BB1_SUPPORT_DIO_PROTOCOL == 1
define DIO_emg
SI_SEGMENT_VARIABLE(PROTOCOL_BUCKETS(DIO_emg)[], static uint16_t, SI_SEG_CODE) = { 260, 2714, 1300, 10400 }; SI_SEGMENT_VARIABLE(PROTOCOL_START(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(1) }; SI_SEGMENT_VARIABLE(PROTOCOL_BIT0(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(0), HIGH(0), LOW(2) }; SI_SEGMENT_VARIABLE(PROTOCOL_BIT1(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(2), HIGH(0), LOW(0) }; SI_SEGMENT_VARIABLE(PROTOCOL_END(DIO_emg)[], static uint8_t, SI_SEG_CODE) = { HIGH(0), LOW(3) };
endif
.....
if EFM8BB1_SUPPORT_DIO_PROTOCOL == 1
endif
I dont know how to do a Pull Request. Can someone do it for me?