Flashing the LEDs at the same interval [Block program]
Contents
Make things
Flash the LED on the obniz Board. In this example, let’s make the flashing time and the fading time be the same interval. Use a block program.
Materials
- LED
- obniz Board
- Mobile batteries, etc.
- Smart Phone or PC
How to make
Hardware Connection
As with lighting a single LED, insert the LED directly, paying attention to the anode and cathode.
Software
1.First, let’s connect the LED to the obniz.
Use the “Connect the LED to the OBNIZ” block to set up the anode and cathode.
2.Flashing the LED
There is a block in the Light that says “Blink 500ms on LED”. Use this.
3.Set the time.
Set the blinking interval.
1000 ms (milliseconds) = 1 second.
It is now blinking.
Program