EasyManuals Logo

Waveshare Alphabot2 User Manual

Waveshare Alphabot2
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #34 background imageLoading...
Page #34 background image
Alphabot2 for micro:bit User Manual
34 / 76
RAINBOW
We create a new project, coding four RGB LEDs for rainbow effect.
1. Place Set item to NeoPixel at pin P8 with 4 leds as (GRB format) block in on start
2. Create a variable hue, place set hue to 0
- these blocks can be created and founded in Variables package
3. Place change hue to 1 block in forever
4. Place item show rainbow from 1 to 360
- the range of hue is 1~360, different hue values stand for different colors, this
block will show average hue (1~360) to 4 RGB LEDs. More the RGB LEDs, more
colors are showed like rainbow.
5. Use 0 + 0 and hue block to complete the script
- 0 + 0 block can be found on Math package
6. Download the script to micro:bit and test

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Waveshare Alphabot2 and is the answer not in the manual?

Waveshare Alphabot2 Specifications

General IconGeneral
BrandWaveshare
ModelAlphabot2
CategoryRobotics
LanguageEnglish

Related product manuals