Hello. I'm doing cording with arduino.
Tomorrow I have to show my cording project to many, many people (elementary-middle-high school's students,). So I have to finish this project today.
but .. I have a stuffy problem. And the error message is "expected initializer before string literal ". I tried to fix my cord many times, but I always have this message!
I think it is out of my hand, so PLEASE help me.. How can I solve this problem?
Here is the cord which I made.
AWOL:
digitalRead, according to the reference page, returns HIGH or LOW.
I agree with you. What if you want to turn on the LED by taking the pin LOW, using a pull-up resistor to keep it HIGH in the not pressed state. Now, you can add !digitalRead(), but writing a ternary argument makes the intent very clear and ports to functions such as Serial.available(), which does not return HIGH or LOW.