From 96c740e045fd516a539b821ec82d10007b533bd8 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 18 Nov 2011 21:56:34 +0100 Subject: renamed constant for input pin receiving ir --- onkyo_ri.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'onkyo_ri.pde') diff --git a/onkyo_ri.pde b/onkyo_ri.pde index 17645ec..3fa2808 100644 --- a/onkyo_ri.pde +++ b/onkyo_ri.pde @@ -15,8 +15,8 @@ MD = 71808 // Digital pin #2 is the same as Pin D2 see // http://arduino.cc/en/Hacking/PinMapping168 for the 'raw' pin mapping -#define IRpin_PIN PINB -#define IRpin 0 +#define IRread_PIN PINB +#define IRread 1 #define ARRAY_LEN(array) (sizeof(array)/sizeof((array)[0])) @@ -42,7 +42,7 @@ void loop(void) { } int getPulseLength() { - bool high = IRpin_PIN & (1 << IRpin); + bool high = IRread_PIN & (1 << IRread); bool check = true; int length = 0; @@ -54,7 +54,7 @@ int getPulseLength() { return -1; } - check = IRpin_PIN & (1 << IRpin); + check = IRread_PIN & (1 << IRread); if (! high) { check = ! check; } -- cgit v1.2.3