From bc2d20ea40a3bdd355834e10a00f1f9805f526ef Mon Sep 17 00:00:00 2001 From: Orhan-Timo Altan <timo.altan@th-koeln.de> Date: Wed, 3 Aug 2022 20:52:00 +0200 Subject: [PATCH] Angepasst an die Konvention der thk_libs --- README.md | 6 +++--- examples/IRReceiver/IRReceiver.ino | 4 ++-- ir_controller.h => thk_ir_controller.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename ir_controller.h => thk_ir_controller.h (96%) diff --git a/README.md b/README.md index 18cf309..4a003f7 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 cf1accf..6055f76 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 e10ad9f..57a12d3 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); }; -- GitLab