Hi there!
I just started programming the first project when this happened
Arduino: 1.6.7 (Windows 10), Board: "Arduino/Genuino Uno"
In function 'void loop()':
LaunchPad.ino:9: error: 'switchState' was not declared in this scope
switchState = digitalRead(2);
^
exit status 1
'switchState' was not declared in this scope
Not sure why its not working I copied the book exactly...
Insight would be appreciated <3 Bethu
LarryD
2
To get help, you must show us your complete sketch. Attach your code using the </> icon on the left side of the posting menu.
Do you have
byte switchState;
at the top of the sketch?
Maybe there's an Errata section in the book?
Bethu4481:
Not sure why its not working I copied the book exactly...
How exactly? Including capitalization? This is why we ask to see your actual sketch, not just "I copied something exactly".
How to use this forum