Arduino: 1.8.13 (Mac OS X), Board: "Arduino Uno"
In file included from sketch/sketch_KNIGHTRIDERLED.ino.cpp:1:0:
/Users/User/Documents/Arduino/sketch_KNIGHTRIDERLED/sketch_KNIGHTRIDERLED.ino: In function 'void setup()':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:43:15: error: expected unqualified-id before numeric constant
#define INPUT 0x0
^
/Users/User/Documents/Arduino/sketch_KNIGHTRIDERLED/sketch_KNIGHTRIDERLED.ino:16:16: note: in expansion of macro 'INPUT'
pinMode(LDRPin.INPUT);
^~~~~
exit status 1
Error compiling for board Arduino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi all.
When I run the above sketch to my UNO board, the LED's work in the KNIGHTRIDER fashion, the LDR is reading in the Serial Monitor, and the figure adjusts if you cover the LDR with something dark, my trouble is the LED's are still going when the LDR value is below the set threshold, so I assume rightly or wrongly this sketch is not controlling the LED's from coming on in the Dark, and going off in the Light, I have uploaded my sketch, can anyone point to where I have gone wrong?