diff --git a/README.md b/README.md index 18cf3096ceb286f752f8690f4b98537462237a99..4a003f7759de002e20ed9c5fa622f02e9d331a5a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# **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:** diff --git a/examples/IRReceiver/IRReceiver.ino b/examples/IRReceiver/IRReceiver.ino index cf1accf69fb6f8d479103e4fee261b9ac1de4fe5..6055f7653e7bb3fa68190e92a4e8baf889628149 100644 --- a/examples/IRReceiver/IRReceiver.ino +++ b/examples/IRReceiver/IRReceiver.ino @@ -1,7 +1,7 @@ -#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(){ diff --git a/ir_controller.h b/thk_ir_controller.h similarity index 96% rename from ir_controller.h rename to thk_ir_controller.h index e10ad9f22e33d7b68c263ee867ad5440013aefd6..57a12d3df00faed9790f297939d4cce51ae94555 100644 --- a/ir_controller.h +++ b/thk_ir_controller.h @@ -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); };