Skip to content
Snippets Groups Projects
Select Git revision
  • fedc7a3da57d8742b194c95f0fb06e304e3212c8
  • 4.26 default protected
  • 4.22 protected
  • 4.21 protected
  • 4.22.1 protected
5 results

nDisplayExtensions.uplugin

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);
      }
    }