I have been playing around with Ardunio because I have no internet and I have to be in my room for 10:30 in this hostel, so I have a couple of hours alone each night and I have always wanted to get into programming. I figured Arduino would be easy to learn, then I could learn a bit of Java etc.
I looked over some of the examples to start out. I looked through the basic and digital examples a bit for 2 nights and I wanted to try making something myself so I could see if I was ready to buy a board.
Could you look over my code and see if I did it right? I just want to know what I did wrong and what I can do to make this better (I was thinking about replacing the print button to a knock sensor or something too). I attached one with notes that I used (I didn’t want to forget what I did the next day because I made this at 1am) and another without the notes.
_3_Lights_with_notes.ino (2.85 KB)
_3_Lights.ino (169 Bytes)