I bought an Espruino board while back because it allowed you to code in JavaScript using a neat chrome add on - a web ide and then flash your device.
We will look at how you can use C++ to write programs for your Micro:bit, there is an online compiler you use and we will show you how to access.
In this example we will create a VB.net program that will read data from the serial port, in this case a Microbit connected to the PC. We will then upload.
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.
The neopixel module lets you use Neopixel (WS2812) individually addressable RGB LED strips with the Microbit. Note to use the neopixel module, you need to import it separately with: import.
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.
- Microbit and KY-018 Photoresistor
- Microbit and KY-034 7 color flashing LED
- Microbit and KY-009 RGB LED
- Microbit and KY-029 Dual Color LED
- Microbit and KY-011 Dual Color LED
- Microbit and KY-020 Tilt switch
- The Sino:bit : an open source relative of the Micro:bit
- Microbit and VCNL4040 Proximity and Ambient Light Sensor Arduino example