Skip to content
Snippets Groups Projects
Commit d4375fe2 authored by Severin Landwein's avatar Severin Landwein
Browse files

start reworking

parent b1a4ec9a
Branches
No related tags found
No related merge requests found
#include "bits_ir_receiver.h" #include "ir_receiver.h"
#define IR_PIN 46 #define IR_PIN 46
BitsIrReceiver ir_sensor(IR_PIN); IrReceiver ir_sensor(IR_PIN);
int command; int command;
void setup(){ void setup(){
......
#include "bits_ir_receiver.h" #include "bits_ir_receiver.h"
BitsIrReceiver::BitsIrReceiver(int pin) { BitsIrReceiver::BitsIrReceiver(uint8_t data_pin) {
IRrecv ir_receiver(aPin); IRrecv ir_receiver(data_pin);
} }
void BitsIrReceiver::begin() { void BitsIrReceiver::begin() {
......
#ifndef BITS_IR_RECEIVER_H #ifndef IR_RECEIVER_H
#define BITS_IR_RECEIVER_H #define IR_RECEIVER_H
/* ****************************************** * /* ****************************************** *
* IR Remote * * IR Remote *
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
#define IR_USE_AVR_TIMER3 #define IR_USE_AVR_TIMER3
#include <IRremote.h> #include <IRremote.h>
class BitsIrReceiver class IrReceiver
{ {
public: public:
BitsIrReceiver(uint8_t pin); IrReceiver(uint8_t data_pin);
void begin(); void begin();
uint8_t receive_command(); uint8_t receive_command();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment