From 9890296f9e093661997cc5c4e558248d4eeaa081 Mon Sep 17 00:00:00 2001
From: Orhan-Timo Altan <timo.altan@th-koeln.de>
Date: Sat, 26 Feb 2022 11:37:15 +0100
Subject: [PATCH] .

---
 BITsIRReciver.h | 60 ++++++++++++++++++++++++-------------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/BITsIRReciver.h b/BITsIRReciver.h
index 40d926d..923f4ca 100644
--- a/BITsIRReciver.h
+++ b/BITsIRReciver.h
@@ -1,41 +1,41 @@
 #ifndef BITSIIRRECIVER_H
 #define BITSIIRRECIVER_H
 
-/* ********************************************** *
- * IR Remote                                      *
- *                                                *
- * 	Button 		      |   Signal Kodierung        *	
- * ---------------------------------------------- *
- * Power Button		  |       69                  *  
- * VOL+ Button		  | 	  70                  * 
- * Func Button		  |       71                  *  
- * Rewind Button	  | 	  68                  * 
- * Play/Pause Button  |	   	  64                  *  
- * Forward Button	  | 	  67                  *
- * Down Button		  | 	  7                   *
- * VOL- Button	      | 	  21                  *
- * UP Button		  |	      9                   *
- * 0 Button	          | 	  22                  * 
- * EQ Button		  | 	  25                  *
- * ST/REPT Button	  | 	  13                  * 
- * 1 Button	          |       12                  * 
- * 2 Button	          |       24                  * 
- * 3 Button	          | 	  94                  *
- * 4 Button	          | 	  8                   *
- * 5 Button	          | 	  28                  *
- * 6 Button	          | 	  90                  *
- * 7 Button	          | 	  66                  *
- * 8 Button	          | 	  82                  *
- * 9 Button	          | 	  74                  *
- * ********************************************** */
+/* ***************************************************** *
+ * IR Remote                                             *
+ *                                                       *
+ * 	Button 		      |   Signal Kodierung     | Index   *	
+ * ----------------------------------------------------- *
+ * Power Button		  |       69               |   0     *  
+ * VOL+ Button		  | 	  70               |   1     * 
+ * Func Button		  |       71               |   2     *  
+ * Rewind Button	  | 	  68               |   3     * 
+ * Play/Pause Button  |	   	  64               |   4     *  
+ * Forward Button	  | 	  67               |   5     *
+ * Down Button		  | 	  7                |   6     *
+ * VOL- Button	      | 	  21               |   7     *
+ * UP Button		  |	      9                |   8     *
+ * 0 Button	          | 	  22               |   9     *    
+ * EQ Button		  | 	  25               |   10    *
+ * ST/REPT Button	  | 	  13               |   11    * 
+ * 1 Button	          |       12               |   12    * 
+ * 2 Button	          |       24               |   13    * 
+ * 3 Button	          | 	  94               |   14    *
+ * 4 Button	          | 	  8                |   15    *
+ * 5 Button	          | 	  28               |   16    *
+ * 6 Button	          | 	  90               |   17    *
+ * 7 Button	          | 	  66               |   18    *
+ * 8 Button	          | 	  82               |   19    *
+ * 9 Button	          | 	  74               |   20    *
+ * ***************************************************** */
 #include <IRremote.h>
 // #define IR_USE_AVR_TIMER3
-const int irReceiverPin = 2;
+const int irReceiverPin = 46;
 IRrecv irrecv(irReceiverPin);
 decode_results results;
 
 // Liste von oben nach unten sortiert
-int commandlist[21] = {69, 70, 71, 68, 64, 67, 7, 21, 9, 22, 25, 13, 12, 24, 94, 8, 28, 90, 66, 82, 74};
+int commandlist[22] = {0, 69, 70, 71, 68, 64, 67, 7, 21, 9, 22, 25, 13, 12, 24, 94, 8, 28, 90, 66, 82, 74};
 
 class BITsIRReciver{
     public:
@@ -50,7 +50,7 @@ class BITsIRReciver{
                 ir_command = irrecv.decodedIRData.command;
                 // Receive the next value
                 irrecv.resume(); 
-                for (int i=0; i<21; i++) {
+                for (int i=0; i<22; i++) {
                     if (ir_command == commandlist[i]) {
                         ir_command_pos = i;
                         break;
-- 
GitLab