Skip to main content

LED Ring


Introduction​

Features​

LED Ring: Composed of multiple independently controllable LEDs arranged in a circular light-emitting body, capable of displaying rich colors and dynamic lighting effects. It is used for decorative lighting to create a gorgeous atmosphere; in device status indication, it uses different lighting modes to feedback working status, combining aesthetics and practicality.


Specifications​

ItemParameter
NameLED Ring
SKUEF16012
InterfaceActuator
Operating Voltage4.15V
Dimensions38.00mm×28.20mm (L×W)

Appearance and Dimensions​

None


Quick Start​

Hardware Connection​

​

Usage Tutorial​

Programming Software​

Microsoft MakeCode


MakeCode Programming​

Step 1: How to Add Jacdac Extension​

  1. Go to Microsoft MakeCode and click "New Project".

  1. Enter the project name in the pop-up window and click "Create".

  1. Click "Extensions" in the code drawer.

  1. Enter "Jacdac" in the pop-up interface, click the search icon, and select the Jacdac library as shown.


Step 2:​

  1. Connect the micro:bit to the computer with a data cable. Note: If the micro:bit runs a Jacdac program for the first time, please pre-install a blank Jacdac program on the micro:bit first; otherwise, skip this step.

    Note: Make sure the power selection switch is set correctly. When using the micro:bit board to power the Jacdac modules, set the switch to micro:bit. When using an external power module, set the switch to Power.

  1. Connect the sensor. MakeCode will automatically recognize it and simulate its status in real time in the simulation area.

  1. Click "ADD BLOCKS" for the sensor extension module. Note: When connecting a new sensor, repeat the operation of clicking "ADD BLOCKS" for the sensor extension module.


Program Code Example​


https://makecode.microbit.org/_DdMYKefUdJ33

You can also download and run it via the embedded link:


Result​

Press the A button on the micro:bit, and the LED ring lights up red; press the B button, and the LED ring turns off.