This part was fairly simple all I had to do was plug in the Arduino, install the IDE, and download the repository. The only change I had to make to the code was to change the spelling of the offTime variable to match throughout the program. The program works by setting pin 13 to OUTPUT mode then changing the output between on (HIGH) and off (LOW). The delay function is used to add spacing between the outputs. To change the rate the LED was blinking I changed the onTime and offTime variables which are just the amount of time the delay function should wait, measured in milliseconds. For the third part I used the bread board since I would need two output pins and both would ned the GND pin. To add the second pin I added a second pin number variable and made sure to set it up in OUTPUT mode in the setup function. Getting them to alternate being off and on was just an extra two lines to control the second ...
Comments
Post a Comment