sketch_dec25a:33: error: expected unqualified-id before 'if'
if (LDR=0) {
sketch_dec25a:33: error: expected unqualified-id before 'if'
if (LDR=0) {
Your code should be if (LDR==0) { .
We use one = sign to assign a value to a variable (ex: LDR = 10;) and two equals signs to denote a comparison between a variable and a value (such as in the "if" statement).
sketch_dec25a:33: error: expected unqualified-id before 'if'
Ponder the meaning of the word I have highlighted.
Pete
el_supremo:
Ponder the meaning of the word I have highlighted.
+1
...R