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

IRReceiver.ino

Blame
  • IRReceiver.ino 266 B
    #include "ir_receiver.h"
    
    #define IR_PIN 46
    IrReceiver ir_sensor(IR_PIN);
    int command;
    
    void setup(){
        Serial.begin(115200);
        ir_sensor.begin();
    }
    
    void loop(){
      command = ir_sensor.receive_command();
      if (command != 0){
        Serial.println(command);
      }
    }