Skip to content

Instantly share code, notes, and snippets.

View a3510377's full-sized avatar

猴貓 a3510377

View GitHub Profile
@a3510377
a3510377 / send_IR_arduino_uno.cpp
Last active October 22, 2023 05:44
發送紅外線訊號(使用 IRremote v4)
#include <Arduino.h>
#include <IRremote.hpp>
const uint8_t address = 0x01;
unsigned long last_time;
void setup() {
Serial.begin(115200);
IrSender.begin(3);
@a3510377
a3510377 / get_IR_arduino_uno.cpp
Last active October 22, 2023 05:55
獲取紅外線訊號(使用 IRremote v4)
#include <Arduino.h>
#include <IRremote.hpp>
#define ADDRESS 0x01
void forward(void);
void left(void);
void right(void);
void back(void);