Resources — state table

STOP:bit MicroPython Tutorial: Two Traffic Lights

microbit MicroPython state table traffic lights

STOP:bit MicroPython Tutorial: Two Traffic Lights

Program a pair of traffic lights to work in tandem using the Kitronik STOP:bit and micro:bits. 

 In this project, you will learn to:

  • Write a state table to represent the different changes between two traffic lights.

  • How to reuse our function to save time, and keep our code readable.

  • Send our light changes to another STOP:bit over radio, and write code to match our state table.

Read more →


Program micro:bit traffic light sequences in Python with these STOP:bit tutorials

coding logic microbit microbit accessories micropython python radio state table steam stem traffic light traffic lights tutorials wireless

Program micro:bit traffic light sequences in Python with these STOP:bit tutorials

Check out these tutorials for the Kitronik STOP:bit and the BBC micro:bit! Learn to code a state table by starting with one traffic light and progressing to two traffic lights in an intersection.

Read more →