Newer
Older
M5StickCPlus_FactoryTest2022 / SampleSrc / irsend01.ino
@motoki miura motoki miura on 10 May 2022 267 bytes SampleSource
#include <IRremoteESP8266.h>
#include <IRsend.h>

uint16_t kIrLed = 9; // 内蔵IrLED
IRsend irsend(kIrLed);

uint32_t code = 0x2FD48B7; // Toshiba TV Power
void setup() {
  irsend.begin();
}

void loop() {
  irsend.sendNEC( code , 32);
  delay(5000);
}