Download libraries/RobotIRremote/src/IRremoteTools.cpp from Beifengdo/Arduino-Development: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/libraries/RobotIRremote/src/IRremoteTools.cpp
- Command line
-
hf download hf://datasets/Beifengdo/Arduino-Development/libraries/RobotIRremote/src/IRremoteTools.cpp
-
curl -L -o IRremoteTools.cpp https://huggingface.co/datasets/Beifengdo/Arduino-Development/resolve/main/libraries/RobotIRremote/src/IRremoteTools.cpp
514 Bytes
| int RECV_PIN = TKD2; // the pin the IR receiver is connected to | |
| IRrecv irrecv(RECV_PIN); // an instance of the IR receiver object | |
| decode_results results; // container for received IR codes | |
| void beginIRremote(){ | |
| irrecv.enableIRIn(); // Start the receiver | |
| } | |
| bool IRrecived(){ | |
| return irrecv.decode(&results); | |
| } | |
| void resumeIRremote(){ | |
| irrecv.resume(); // resume receiver | |
| } | |
| unsigned long getIRresult(){ | |
| return results.value; | |
| } | |