mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-08 22:22:51 +00:00
Fixed bugs and added defines
Ready for testing
This commit is contained in:
@@ -79,6 +79,9 @@
|
||||
#define DECODE_LEGO_PF 0 // NOT WRITTEN
|
||||
#define SEND_LEGO_PF 1
|
||||
|
||||
#define DECODE_RECS80 0 // NOT WRITTEN
|
||||
#define SEND_RECS80 1 // Still being tested
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// When sending a Pronto code we request to send either the "once" code
|
||||
// or the "repeat" code
|
||||
@@ -350,6 +353,10 @@ class IRsend
|
||||
# if SEND_LEGO_PF
|
||||
void sendLegoPowerFunctions (uint16_t data, bool repeat = true) ;
|
||||
# endif
|
||||
//......................................................................
|
||||
# if SEND_RECS80
|
||||
void sendRECS80 (uint8_t address, uint8_t address_nbit, uint8_t command, uint8_t command_nbit) ;
|
||||
# endif
|
||||
|
||||
#ifdef USE_SOFT_CARRIER
|
||||
private:
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#define RECS80_MARK 158
|
||||
#define RECS80_ONE_SPACE 7426
|
||||
#define RECS80_ZERO_SPACE 4898
|
||||
|
||||
#if SEND_RECS80
|
||||
|
||||
void IRsend::sendRECS80 (uint8_t address, uint8_t address_nbit, uint8_t command, uint8_t command_nbit) {
|
||||
@@ -27,7 +28,7 @@ void IRsend::sendRECS80 (uint8_t address, uint8_t address_nbit, uint8_t command,
|
||||
if (address & mask) {
|
||||
space(RECS80_ONE_SPACE);
|
||||
} else {
|
||||
space(RECS80_ONE_ZERO);
|
||||
space(RECS80_ZERO_SPACE);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -39,7 +40,7 @@ void IRsend::sendRECS80 (uint8_t address, uint8_t address_nbit, uint8_t command,
|
||||
if (command & mask) {
|
||||
space(RECS80_ONE_SPACE);
|
||||
} else {
|
||||
space(RECS80_ONE_ZERO);
|
||||
space(RECS80_ZERO_SPACE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user