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
Branches main
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. Mit dieser Klasse werden die Empfangenen Befehle von einer Infrarot Fernbedienung zurück gegeben.
Sie dient als erleichterte Bedienung der IRRemote.h Bibliothek. Sie dient als erleichterte Bedienung der IRRemote.h Bibliothek.
...@@ -31,12 +31,12 @@ Zur Verwendung siehe zunächst das Beispiel `IRReceiver.ino` ...@@ -31,12 +31,12 @@ Zur Verwendung siehe zunächst das Beispiel `IRReceiver.ino`
**Einbinden der Bibliothek:** **Einbinden der Bibliothek:**
```arduino ```arduino
#include <ir_controller.h> #include <thk_ir_controller.h>
``` ```
**Instanziieren:** **Instanziieren:**
```arduino ```arduino
IrController ir_sensor(IR_PIN); thk_IrController ir_sensor(IR_PIN);
``` ```
**Aufrufen der Methoden:** **Aufrufen der Methoden:**
......
#include "ir_controller.h" #include "thk_ir_controller.h"
const uint8_t IR_PIN = 46; const uint8_t IR_PIN = 46;
IrController ir_sensor(IR_PIN); thk_IrController ir_sensor(IR_PIN);
uint8_t command; uint8_t command;
void setup(){ void setup(){
......
...@@ -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 IrController class thk_IrController
{ {
public: public:
IrController(const uint8_t DATA_PIN){ thk_IrController(const uint8_t DATA_PIN){
IRrecv ir_receiver(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