Skip to content
Snippets Groups Projects
Commit bc2d20ea authored by Orhan-Timo Altan's avatar Orhan-Timo Altan
Browse files

Angepasst an die Konvention der thk_libs

parent 1bbcf72d
No related branches found
No related tags found
No related merge requests found
# **BITs IR Empfänger**
# **IR Empfänger**
Mit dieser Klasse werden die Empfangenen Befehle von einer Infrarot Fernbedienung zurück gegeben.
Sie dient als erleichterte Bedienung der IRRemote.h Bibliothek.
......@@ -31,12 +31,12 @@ Zur Verwendung siehe zunächst das Beispiel `IRReceiver.ino`
**Einbinden der Bibliothek:**
```arduino
#include <ir_controller.h>
#include <thk_ir_controller.h>
```
**Instanziieren:**
```arduino
IrController ir_sensor(IR_PIN);
thk_IrController ir_sensor(IR_PIN);
```
**Aufrufen der Methoden:**
......
#include "ir_controller.h"
#include "thk_ir_controller.h"
const uint8_t IR_PIN = 46;
IrController ir_sensor(IR_PIN);
thk_IrController ir_sensor(IR_PIN);
uint8_t command;
void setup(){
......
......@@ -31,10 +31,10 @@
#define IR_USE_AVR_TIMER3
#include <IRremote.h>
class IrController
class thk_IrController
{
public:
IrController(const uint8_t DATA_PIN){
thk_IrController(const uint8_t DATA_PIN){
IRrecv ir_receiver(DATA_PIN);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment