Week 6 Embedded programming
This week I added a 0.96″ OLED screen to my micro:bit. I started by soldering a female header to the breakoutboard this allows the wires to be put slotted in easily and stay secure. I followed this tutorial to add the correct extension makecode and to be sure of where the wires should be.
The pins for using I2C need to be 19 and 20, so the pin connections with your micro:bit are: (Colours of wires are just for future reference – will not always be these colours)
- GND to GND (or 0 V) Red Wire
- VCC to 3V Brown wire
- SCL (serial clock) to micro:bit pin 19 Black Wire
- SDA (serial data) to micro:bit pin 20 White Wire
When you press the A button it would show minimum temp and B Button would show the maximum. There will also be a line going across showing the increase or decrease in temperature. You can see the full code in detail in the link below.
https://makecode.microbit.org/_26Y3H05m5c3t