EasyManua.ls Logo

Cytron Technologies micro:bit - Page 20

Default Icon
24 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Let's Explore
A light-emitting diode (LED) is a semiconductor
device that produces light from electricity.
1 - ON or 0 - OFFPin-0 (P0), Pin-1 (P1) or Pin-2 (P2)
- Which pin is it connected to?
You can control an LED that is connected to the
micro:bit using [ digital write pin __ to __ ] block
from the [ Advanced - Pins ] category.
An LED is an example of a digital output device.
It has only two possible states - ON (1) or OFF (0).
It has a positive terminal and a negative terminal.
For the LED to work, the negative terminal
(shorter leg) must be connected to pin-GND but
you can connect the positive terminal (the longer
leg) to either pin-0, pin-1 or pin-2 of the micro:bit.
17