добавила пин для платы старт
This commit is contained in:
1 parent
c6c671e7a8
commit
faf859fc96
4 files changed
+9
-11
No files matched your search
@@ -90,10 +90,10 @@
|
||||
#define STR(x) STR_HELPER(x)
|
||||
#endif
|
||||
|
||||
#define IR_SEND_PIN 3
|
||||
#define IR_RECEIVE_PIN 4
|
||||
#define IR_SEND_PIN 3 // P0_0
|
||||
#define IR_RECEIVE_PIN 4 // P0_1
|
||||
|
||||
#define BTN_ACTIVE_STATE HIGH
|
||||
#define BTN_ACTIVE_STATE HIGH // HIGH for Elbear boards, LOW for Start board
|
||||
|
||||
#include <IRremote.hpp>
|
||||
|
||||
@@ -111,7 +111,7 @@ volatile bool sDataJustReceived = false;
|
||||
void ReceiveCompleteCallbackHandler();
|
||||
|
||||
void setup() {
|
||||
pinMode(BTN_BUILTIN, INPUT_PULLUP);
|
||||
pinMode(BTN_BUILTIN, INPUT);
|
||||
|
||||
Serial.begin(9600);
|
||||
while (!Serial)
|
||||
@@ -139,7 +139,7 @@ void setup() {
|
||||
Serial.println(F("Receive buffer length is " STR(RAW_BUFFER_LENGTH)));
|
||||
|
||||
#if defined(IR_SEND_PIN)
|
||||
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
|
||||
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
|
||||
Serial.println(F("Send IR signals at pin " STR(IR_SEND_PIN)));
|
||||
#else
|
||||
// Here the macro IR_SEND_PIN is not defined or undefined above with #undef IR_SEND_PIN
|
||||
|
||||
Reference in new issue
Block a user