Turn on an LED [Block Program]

Make things

Turn on an LED with an obniz Board by block programing.

Materials

How to make

Hardware connection

Connect the LED to the obniz Board, referring to the library of LED.
As shown below, connect anode to 0 pin and cathode to 1 pin.

 

Software

1.Connect LED and turn on it

Use “led wired on obniz” block and “Turn on led” block from Light item.

2.Set the pin number to which the LED is connected

Enter the each pin number to which the anode and the cathode is connected.

Then, put “Turn on led” block into “repeat do” block.

  In a programming term, it is called "loop" to continually repeat program.

Program