One reads the status, teh other wri
Swaggydogy:
Can you tell me what the difference between digitalRead and digitalWrite?
One reads the pin status, the other sets it. Tutorials on both commands on this site.
And also what the difference about '=' and '=='?
The first is an assignment, the second a boolean comparison. Read up on those, it's basic programming.