Khalid
June 2, 2012, 3:13pm
#1
Hi,
The potentiometer is connected to Analog pin 1 and i want the readings between 0 and 10 , so using map function using the #define:
define INTERVAL_TIME map((analogRead(A1), 0, 1023, 0, 10));
Now in certain part of my program i want to use this INTERVAL_TIME inside the delay i.e.
delay(INTERVAL_TIME*60*1000);
but compiler show me error "at this point in file".
What i am doing wrong here?
system
June 2, 2012, 3:14pm
#2
Semicolon in #define
Lose it
Khalid
June 2, 2012, 3:19pm
#3
AWOL,
Bravo...just removed the ";" from define but but i am still getting the same error at delay line. Thank you for the continuous help and support in this forum.
Khalid
June 2, 2012, 3:21pm
#5
I just removed the one extra "(" around the map and its working fine now. thank you for pointing. You saved my day :D