Software › Dice on Shake
Dice on Shake
demo Open · freely redistributable
An original CC0 bare-metal micro:bit v1 program: it reads the accelerometer X/Y/Z over the real nRF51 TWI (I2C) bus, and when the total acceleration spikes (a shake) it draws a new dice number from the hardware RNG (TASKS_START / EVENTS_VALRDY / VALUE). Exercises the accelerometer and RNG peripherals.
Format: nRF51 flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)