Monday, November 16, 2015

Blink a Light

Today for Step 1 which was called Blink a Light Ruth and I had Plugged in one end of the USB cable into the USB port on the Arduino.
 We then took the other end of the USB cable and plug it into a USB port on your computer. Once we had done that we had to then open the Arduino IDE software program on our desktop.
      
When we entered the Arduino IDE software program on our desktop we clicked Tools → Board → Arduino UNO.
 We then were prompt to click Tools → Port → (Arduino UNO).
 As soon as that was completed we had to open and then click Arduino software - File - New - then copied and pasted the following code over what is on that screen.

This is the code we pasted
void setup() {
 // initialize digital pin 13 as an output.
 pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
 digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(1000);              // wait for a second
 digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
 delay(1000);              // wait for a second
}

It was then saved as - Blinker and we uploaded the code by File. Towards the end it was the most exciting part because we got to watch the yellow on-board LED next to port 13 blink on and off.





Displaying IMG_1870.JPG


No comments:

Post a Comment