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

start reworking

parent b1a4ec9a
Branches master
No related tags found
No related merge requests found
#include "bits_ir_receiver.h"
#include "ir_receiver.h"
#define IR_PIN 46
BitsIrReceiver ir_sensor(IR_PIN);
IrReceiver ir_sensor(IR_PIN);
int command;
void setup(){
......
#include "bits_ir_receiver.h"
BitsIrReceiver::BitsIrReceiver(int pin) {
IRrecv ir_receiver(aPin);
BitsIrReceiver::BitsIrReceiver(uint8_t data_pin) {
IRrecv ir_receiver(data_pin);
}
void BitsIrReceiver::begin() {
......
#ifndef BITS_IR_RECEIVER_H
#define BITS_IR_RECEIVER_H
#ifndef IR_RECEIVER_H
#define IR_RECEIVER_H
/* ****************************************** *
* IR Remote *
......@@ -31,10 +31,10 @@
#define IR_USE_AVR_TIMER3
#include <IRremote.h>
class BitsIrReceiver
class IrReceiver
{
public:
BitsIrReceiver(uint8_t pin);
IrReceiver(uint8_t data_pin);
void begin();
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