Data log on/off state

Hi, New to this Arduino stuff, I would like to log the times an input is switched between on and off (high / low). I have the kit, just not sure how to create the sketch. Thanks!

Your post was MOVED to its current location as it is more suitable.

Have you looked at the examples in the IDE ?

Do you know how to read the state of a digital input and print the state to the Serial monitor ?

What have you tried so far ?

When is our assignment due to be handed in ?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.