ForLoop Example for Intel® Galileo Board
The ForLoop example uses six LEDs and controls the LED lighting using a for loop. We are using the code provided under the examples for Arduino* IDE 1.5.3.
Hardware
- Intel® Galileo Board
- Breadboard
- Six LEDs
- Wires
Instructions
- Place the six LEDs on the bread board. Notice that the longer leg on the LED is positive, and the shorter leg is negative. Make the following negative connections. When making the Breadboard to LED connections, connect all six LEDs.
Intel® Galileo Board Breadboard LED GND pin-out Negative Strip Negative Strip Negative - Make the following positive connections. Connect LEDs from left (LED 1) to right (LED 6).
Intel® Galileo Board LED Pin-out 2 Positive LED 1 Pin-out 3 Positive LED 2 Pin-out 4 Positive LED 3 Pin-out 5 Positive LED 4 Pin-out 6 Positive LED 5 Pin-out 7 Positive LED 6 - Connect the power supply and the USB to USB Client Port on the Intel Galileo Board.
- Open Arduino IDE.
- Click Tools > Board and select Intel Galileo.
- Click Tools > Serial Port and select the Com # that the Intel Galileo Board is connected to.
- Click File > Examples > 05.Control and select ForLoop.
- Click upload icon.
Circuit
| Note | This image was created using Fritzing*. |
