Software › Buttons + Tones
Buttons + Tones
demo Open · freely redistributable
An original CC0 bare-metal micro:bit V2 program: it enables pull-ups on the button pins (P0.14 / P0.23) and reads them from the GPIO IN register, showing a neutral face by default, a happy face plus an 880 Hz beep while A is held, and a sad face plus a 220 Hz beep while B is held. Exercises the real button hardware and the PWM speaker together.
Format: nRF52 flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)