MicroBit
This example melds together our Microbit and an AD keypad and our Microbit built in tunes and allows you to play a different tune based on a key being pressed We only selected 9.
I purchased this module as part of a microcontroller kit, its an interesting little module as it has 16 buttons but with only 1 I/O line is required, an analog input..
For the purposes of education and entertainment, the module contains several example tunes that are expressed as Python lists. They can be used like this: import music music.play(music.NYAN) All.
MicroPython on the BBC micro:bit comes with a powerful music and sound module. It’s very easy to generate bleeps and bloops from the device if you attach a buzzer. Use.
A photoresistor (or light-dependent resistor, LDR, or photocell) is a light-controlled variable resistor. The resistance of a photoresistor decreases with increasing incident light intensity; in other words, it exhibits photoconductivity..
The BBC micro:bit does not have a dedicated temperature sensor. Instead, the temperature provided is actually the temperature of the silicon die on the main CPU. So not a perfect.