Skip to content

Commit f9674f7

Browse files
committed
Removed AIWA implementation, added Lego_PF decode.
1 parent 688607f commit f9674f7

File tree

8 files changed

+111
-215
lines changed

8 files changed

+111
-215
lines changed

.github/issue_template.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010

1111
### Protocol
1212
* [ ] Unknown
13-
* [ ] Aiwa
1413
* [ ] BoseWave
1514
* [ ] Denon
1615
* [ ] Dish
1716
* [ ] JVC
1817
* [ ] Lego
1918
* [ ] LG
20-
* [ ] Mitsubishi
2119
* [ ] Panasonic
2220
* [ ] RC5, RC6
2321
* [ ] Samsung

.github/workflows/LibraryBuild.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
env:
3333
# Comma separated list without double quotes around the list.
34-
REQUIRED_LIBRARIES:
34+
REQUIRED_LIBRARIES: Keyboard
3535

3636
strategy:
3737
matrix:
@@ -61,24 +61,26 @@ jobs:
6161
#############################################################################################################
6262
include:
6363
- arduino-boards-fqbn: arduino:avr:uno|USE_NEC_STANDARD
64+
sketches-exclude: IR2Keyboard
6465
build-properties: # the flags were put in compiler.cpp.extra_flags
6566
All: -DUSE_NEC_STANDARD
6667

6768
- arduino-boards-fqbn: arduino:avr:uno|USE_NO_SEND_PWM
69+
sketches-exclude: IR2Keyboard
6870
build-properties: # the flags were put in compiler.cpp.extra_flags
6971
All: -DUSE_NO_SEND_PWM
7072

7173
- arduino-boards-fqbn: esp32:esp32:featheresp32:FlashFreq=80
7274
platform-url: https://dl.espressif.com/dl/package_esp32_index.json
73-
sketches-exclude: LGACSendDemo # undefined reference to `TwoWire::onReceive(void (*)(int))'
75+
sketches-exclude: IR2Keyboard,LGACSendDemo # undefined reference to `TwoWire::onReceive(void (*)(int))'
7476

7577
- arduino-boards-fqbn: SparkFun:avr:promicro
7678
arduino-platform: arduino:avr,SparkFun:avr
7779
platform-url: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json # Arduino URL is not required here
7880

7981
- arduino-boards-fqbn: sandeepmistry:nRF5:BBCmicrobit
8082
platform-url: https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json
81-
sketches-exclude: AiwaRCT501SendDemo,BoseWaveSendDemo,IRrecord,IRsendDemo,IRsendProntoDemo,IRsendRawDemo,IRsendNecStandardDemo,IRtest,IRtest2,LegoPowerFunctionsSendDemo,JVCPanasonicSendDemo,LGACSendDemo,MicroGirs # no sending yet
83+
sketches-exclude: IR2Keyboard,BoseWaveSendDemo,IRrecord,IRsendDemo,IRsendProntoDemo,IRsendRawDemo,IRsendNecStandardDemo,IRtest,IRtest2,LegoPowerFunctionsSendDemo,JVCPanasonicSendDemo,LGACSendDemo,MicroGirs # no sending yet
8284

8385

8486
# Do not cancel all jobs / architectures if one job fails

examples/AiwaRCT501SendDemo/AiwaRCT501SendDemo.ino

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/IRremoteInfo/IRremoteInfo.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ void dumpProtocols() {
259259
printSendEnabled(SEND_WHYNTER);
260260
printDecodeEnabled(DECODE_WHYNTER);
261261

262-
Serial.print(F("AIWA_RC_T501: "));
263-
printSendEnabled(SEND_AIWA_RC_T501);
264-
printDecodeEnabled(DECODE_AIWA_RC_T501);
262+
// Serial.print(F("AIWA_RC_T501: "));
263+
// printSendEnabled(SEND_AIWA_RC_T501);
264+
// printDecodeEnabled(DECODE_AIWA_RC_T501);
265265

266266
Serial.print(F("LG: "));
267267
printSendEnabled(SEND_LG);

src/IRremote.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// Each protocol you include costs memory and, during decode, costs time
3333
// Disable (set to 0) all the protocols you do not need/want!
3434
//
35-
#define DECODE_AIWA_RC_T501 1
36-
#define SEND_AIWA_RC_T501 1
35+
//#define DECODE_AIWA_RC_T501 1
36+
//#define SEND_AIWA_RC_T501 1
3737

3838
#define DECODE_BOSEWAVE 1
3939
#define SEND_BOSEWAVE 1
@@ -47,7 +47,7 @@
4747
#define DECODE_JVC 1
4848
#define SEND_JVC 1
4949

50-
#define DECODE_LEGO_PF 0 // NOT WRITTEN
50+
#define DECODE_LEGO_PF 1
5151
#define SEND_LEGO_PF 1
5252

5353
#define DECODE_LG 1
@@ -110,7 +110,7 @@
110110
typedef enum {
111111
UNKNOWN = -1,
112112
UNUSED = 0,
113-
AIWA_RC_T501,
113+
// AIWA_RC_T501,
114114
BOSEWAVE,
115115
DENON,
116116
DISH,
@@ -324,10 +324,10 @@ class IRrecv {
324324
bool decodeWhynter(decode_results *aResults);
325325
#endif
326326
//......................................................................
327-
#if DECODE_AIWA_RC_T501
328-
bool decodeAiwaRCT501();
329-
bool decodeAiwaRCT501(decode_results *aResults);
330-
#endif
327+
//#if DECODE_AIWA_RC_T501
328+
// bool decodeAiwaRCT501();
329+
// bool decodeAiwaRCT501(decode_results *aResults);
330+
//#endif
331331
//......................................................................
332332
#if DECODE_LG
333333
bool decodeLG();
@@ -363,7 +363,7 @@ class IRrecv {
363363
#endif
364364
//......................................................................
365365
#if DECODE_LEGO_PF
366-
bool decodeLegoPowerFunctions (decode_results *aResults) ;
366+
bool decodeLegoPowerFunctions () ;
367367
#endif
368368
//......................................................................
369369
#if DECODE_BOSEWAVE
@@ -465,9 +465,9 @@ class IRsend {
465465
void sendWhynter(unsigned long data, int nbits);
466466
#endif
467467
//......................................................................
468-
#if SEND_AIWA_RC_T501
469-
void sendAiwaRCT501(int code);
470-
#endif
468+
//#if SEND_AIWA_RC_T501
469+
// void sendAiwaRCT501(int code);
470+
//#endif
471471
//......................................................................
472472
#if SEND_LG
473473
void sendLG(unsigned long data, int nbits);

src/irReceive.cpp

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bool IRrecv::decode() {
6363
}
6464
#endif
6565

66-
//#if DECODE_MITSUBISHI
66+
//#if DECODE_LEGO_PF
6767
// DBG_PRINTLN("Attempting Mitsubishi decode");
6868
// if (decodeMitsubishi()) {
6969
// return true;
@@ -119,12 +119,12 @@ bool IRrecv::decode() {
119119
}
120120
#endif
121121

122-
#if DECODE_AIWA_RC_T501
123-
DBG_PRINTLN("Attempting Aiwa RC-T501 decode");
124-
if (decodeAiwaRCT501()) {
125-
return true;
126-
}
127-
#endif
122+
//#if DECODE_AIWA_RC_T501
123+
// DBG_PRINTLN("Attempting Aiwa RC-T501 decode");
124+
// if (decodeAiwaRCT501()) {
125+
// return true;
126+
// }
127+
//#endif
128128

129129
#if DECODE_DENON
130130
DBG_PRINTLN("Attempting Denon decode");
@@ -379,11 +379,11 @@ const char* IRrecv::getProtocolString() {
379379
case UNKNOWN:
380380
return ("UNKNOWN");
381381
break;
382-
#if DECODE_AIWA_RC_T501
383-
case AIWA_RC_T501:
384-
return ("AIWA_RC_T501");
385-
break;
386-
#endif
382+
//#if DECODE_AIWA_RC_T501
383+
// case AIWA_RC_T501:
384+
// return ("AIWA_RC_T501");
385+
// break;
386+
//#endif
387387
#if DECODE_BOSEWAVE
388388
case BOSEWAVE:
389389
return ("BOSEWAVE");
@@ -410,8 +410,8 @@ const char* IRrecv::getProtocolString() {
410410
break;
411411
#endif
412412
#if DECODE_LG
413-
case LG:
414-
return ("LG");
413+
case LEGO_PF:
414+
return ("LEGO_PF");
415415
break;
416416
#endif
417417
#if DECODE_MAGIQUEST
@@ -608,12 +608,12 @@ bool IRrecv::decode(decode_results *aResults) {
608608
}
609609
#endif
610610

611-
#if DECODE_AIWA_RC_T501
612-
DBG_PRINTLN("Attempting Aiwa RC-T501 decode");
613-
if (decodeAiwaRCT501(aResults)) {
614-
return true;
615-
}
616-
#endif
611+
//#if DECODE_AIWA_RC_T501
612+
// DBG_PRINTLN("Attempting Aiwa RC-T501 decode");
613+
// if (decodeAiwaRCT501(aResults)) {
614+
// return true;
615+
// }
616+
//#endif
617617

618618
#if DECODE_DENON
619619
DBG_PRINTLN("Attempting Denon decode");
@@ -622,13 +622,6 @@ bool IRrecv::decode(decode_results *aResults) {
622622
}
623623
#endif
624624

625-
#if DECODE_LEGO_PF
626-
DBG_PRINTLN("Attempting Lego Power Functions");
627-
if (decodeLegoPowerFunctions(aResults)) {
628-
return true ;
629-
}
630-
#endif
631-
632625
#if defined(DECODE_HASH)
633626
DBG_PRINTLN("Hash decode");
634627
// decodeHash returns a hash on any input.

src/ir_Aiwa.cpp

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)