VMM501
V. 01 – 17/01/2019
26
©Velleman nv
You can find the
NeoPixel at pin
P0
with 24 leds
,
item show rainbow
from
1
to
360
,
item show
and
items rotate pixels by
1
blocks in
NeoPixel
in the Code Drawer.
3.
Drag and drop the
set strip to
NeoPixel at pin
P0
with 24 leds as RGB
(GRB format)
block in the
on start
block. Set pin to
P0
and the value 24
to 8 (we have 8 LEDs on the LED ring).
4.
Now, drag and drop the
set strip to
rainbow from 1 to 360
block under
the
set strip to
NeoPixel at pin
P0
block.
5.
Complete the code according to the example.
6.
When complete, we compile the programme and generate a hex. file. Click
on the download button and save the hex. file to the Downloads folder
C:\downloads. This hex. file is ready to upload to the micro:bit.
Plug the micro:bit into a USB port. The, drag and drop the hex. file onto the
micro:bit removable device to upload the programme.
We can see rainbow rotating on the LED ring. Now, how would you make the ring blink like an eye?
Use this device with original accessories only. Velleman nv cannot be held responsible in the event of damage or
injury resulting from (incorrect) use of this device. For more info concerning this product and the latest version
of this manual, please visit our website www.velleman.eu. The information in this manual is subject to change
without prior notice.
© COPYRIGHT NOTICE
The copyright to this manual is owned by Velleman nv. All worldwide rights reserved.
No part of this manual may
be copied, reproduced, translated or reduced to any electronic medium or otherwise without the prior written consent of the
copyright holder.