In this chapter
An introduction to the basic components of electronic circuits
The BBC micro:bit's input-output pins and what they can do
Using the BBC micro:bit to power your electronic circuits
How to read from and write to the BBC micro:bit's pins from your own programs
Reading from a button input
Writing to an LED output
A practical project: building your own set of traffic lights
THE BBC MICRO:BIT'S on-board buttons and LED display make it a device which works perfectly well on its own. You can build surprisingly complex projects without ever adding additional hardware, from games to touch detectors.
Sooner or later, though, you're going to want to expand the capabilities of your BBC micro:bit, and it's here the edge connector comes into play. This ...