View on GitHub

mb-neopixel

A sample project that uses NeoPixel with the BBC micro:bit

mb-neopixel

This is a sample project that uses NeoPixel with the BBC micro:bit. The lighting behavior is determined based on the values from the micro:bit’s accelerometer. This project uses the MakeCode editor.

Open this page at https://youpong.github.io/mb-neopixcel/

Setup

Import the project

Access the MakeCode website. MakeCode

Click Import.

Import

Select Import URL…

URL

Enter the URL and click Go ahead! https://github.com/youpong/mb-neopixel

Edit main.ts

Modify the following constants to match your NeoPixel device. For example, if the number of pixels is 8:

const PIXEL_NUM = 8;

Download the program

Connect the micro:bit to your PC and download the program.

Connecting the micro:bit and NeoPixel

Connect as follows.

micro:bit NeoPixel
pin1 DIN
3V. VCC
GND GND

Use as Extension

This repository can be added as an extension in MakeCode.

Edit this project

To edit this repository in MakeCode.

References

License

MIT

Metadata (used for search, rendering)