Love Meter¶
Uses¶
pins, LED Display
Description¶
In this challenge you will use your micro:bit to create a love meter that generates a random number from 0-100 when pin0 and GND is touched.
You will need 2 person for this activity, wherein 2 person will touch each others hand, and one person’s free hand will touch the pin0, while the other person’s free hand will touch the GND pin.
Basic Task¶
- Display a welcome image and a scrolling text that says “LOVE METER”
- Check whether pin0 was touched. use the
pin0.is_touched()to do this. - Generate a random number from 0 to 100.
- Create a waiting animation for 4 seconds to create anticipation
- Display the result on the LED display