Arduino Homework 1

Assignment 2: Arduino, CC Lab & Lec

As part of CC Lab homework for arduino, we were supposed to change the state of the button. So i used the button to switch between LEDs. When the button is not pressed, the red light is on, but the red light turns off and the green light turns on for the period that the button is pressed.

Link for the code used:

https://github.com/parikhpriyal/CCLab2015/blob/master/ArduinoButtonLED/ArduinoButtonLED.ino

Advertisements