corrected IR pin defs

This commit is contained in:
strawmanbobi
2022-11-07 13:45:58 +08:00
parent abd42155f1
commit 7a13b08bb8
2 changed files with 3 additions and 3 deletions

View File

@@ -82,10 +82,10 @@ bool emitIR(String timing) {
if (parts_num > 0) { if (parts_num > 0) {
for (i = 0; i < parts_num; i++) { for (i = 0; i < parts_num; i++) {
series[i] = (uint16_t) atoi(parts[i]); series[i] = (uint16_t) atoi(parts[i]);
// INFOF("%d ", series[i]);
} }
series[i] = (uint16_t) IR_END_CODE; series[i] = (uint16_t) IR_END_CODE;
ir_recv->disableIRIn(); ir_recv->disableIRIn();
INFOF("IR send raw : %d\n", parts_num);
ir_send->sendRaw(series, parts_num + 1, 38); ir_send->sendRaw(series, parts_num + 1, 38);
ir_recv->enableIRIn(); ir_recv->enableIRIn();
} }

View File

@@ -73,8 +73,8 @@ typedef unsigned char uint8_t;
#define R_433 12 #define R_433 12
/* IR pin */ /* IR pin */
#define T_IR 14 #define T_IR 4
#define R_IR 4 #define R_IR 14
/* ----------------- lsoc setting --------------- */ /* ----------------- lsoc setting --------------- */
/* lsoc heart beat cycle */ /* lsoc heart beat cycle */