Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.txt | 2021-02-17 | 2.2 kB | |
MicroBit2RaceCountdown.py | 2021-02-17 | 3.0 kB | |
microbitCountdownForRaceCircuit.py | 2021-02-12 | 2.5 kB | |
EenvoudigRGG.py | 2021-01-18 | 1.4 kB | |
microbit1AftelLichtStartLoop.py | 2021-01-18 | 2.1 kB | |
Totals: 5 Items | 11.3 kB | 0 |
Top: English; Onderaan Nederlands: [Nl] Hardware: Kitronik STOP:BIT Traffic Light for BBC Micro:bit Mount the BBC Micro:bit to the STOP:BIT and load programs via usb. Python programs: - EenvoudigRGG.py: Traffic Light, normal sequence. - MicroBit2RaceCountdown.py For the micro:bit2 with build-in speaker. When powered on: * shows version * red light on * shows racetime (can be changed by the A and B buttons) * Starts to countdown scroll on display with yellow light flashing * on 0, green light on (other off), and time scrolls on display * racing time counts down and is scrolled continuesly until * zero: red light on, sound signal, yellow light added * scrolling "Finish" * Sound speaks the race is over, several times * ends with smiling face on display. (Reset to run again) - microbit1AftelLichtStartLoop.py Countdown to start a race; multiple B-press adds delay at start; A-press starts the red light and the countdown with blinking yellow light; green = start. Afterwards counter counts up until end value, end of race. (e.g. count who did the most rounds = winner). (first version; see also MicroBit2RaceCountdown) [Nl] - [Nl] - [Nl] - [Nl] - [Nl] - [Nl] - [Nl] - [Nl] - [Nl] - [Nl] - EenvoudigRGG.py: Verkeerslicht werking: Rood Groen Geel opeenvolging vanaf druk op de knop. - microbit1AftelLichtStartLoop.py NL: Werkt als aftel-licht bv voor een race met raceauto's: Druk voor een wachttijd herhaald op B, druk op A als je kaar bent; Rood en aftellend naar geel, groen = start! Daarna telt de teller op tot een eindpunt waar hij op geel stopt (bv einde van de race door de tijd, winnaar wie meeste rondes deed). - MicroBit2RaceCountdown.py Voor de micro:bit 2 met ingebouwde luidspreker. Start bij aansluiten voeding (batterij/usb); * rood licht aan * toont racetijd (kan veranderd worden met A en B knop) * begint af te tellen op scherm met pinkend oranje licht * op nul gaan rood en geel uit en groen aan; racetijd rolt over scherm * Bij nul gaat het rode licht aan en klinkt een geluidssignaal, oranje ook aan en de tekst "Finish" rolt over het scherm. * Geluid "de race is voorbij" (in Engels). * eindigt met lachend gezicht op scherm.