Skip to content
Snippets Groups Projects
Select Git revision
  • 188ad6825e1c7f1c05870633ff7136994d4af1ac
  • v2.0 default protected
  • main protected
3 results

IRReceiver.ino

Blame
  • IRReceiver.ino 297 B
    #include "thk_ir_controller.h"
    
    const uint8_t IR_PIN = 46;
    thk_IrController ir_sensor(IR_PIN);
    uint8_t command;
    
    void setup(){
        Serial.begin(115200);
        ir_sensor.begin(IR_PIN);
    }
    
    void loop(){
      command = ir_sensor.receive_command();
      if (command != 0){
        Serial.println(command);
      }
    }