- Install
- Basic operation
- Basics of programming for electronic work
- Connect to micro computer
- Input / Output
- PWM Output
- Motor control
- Display
- Control LCD
- Control NeoPixel
- Control OLED display
- Controlling the RGB LED on the Raspberry Pi 500+ keyboard
- Controlling the onboard LED matrix and RGB LEDs on the Arduino UNO Q
- Sensor
- Micro controller
- Basics of programming for Excel
- Machine learning with scikit-learn
- Visualizing data with matplotlib
- Web programming
- RPA programming
- Miscellaneous programming
- Reference
Controlling the RGB LED on the Raspberry Pi 500+ keyboard
The Raspberry Pi 500+, a Raspberry Pi with an integrated keyboard, features individually controllable RGB LEDs on the keyboard.
You can control the display of these RGB LEDs using the blocks in the "Display" - "Raspberry Pi 500+" group.
Initialization
After connecting to the Raspberry Pi 500+, initialize the keyboard LEDs using the Keyboard LED Initialization block.
![]()
Setting LED Colors
Use the Color Settings block to determine the color of each LED.
The LEDs are arranged in 6 rows and 16 columns, so specify the location of each LED using the row and column.
![]()
Note that this block sets the color in a buffer in memory.
To actually light up the LEDs, you must execute the following LED display block.
Also, some locations do not have LEDs.
Even if you specify an LED color for those locations, it will not be displayed.
Displaying LEDs
After specifying the color of each LED in the color setting block, execute the display block to actually light up the LEDs.
![]()
Clear LED
To turn off all lit LEDs, use the Clear LED block.
![]()
You can also use the Clear Buffer block to clear the buffer information without turning off the LEDs.
Use the Clear Buffer block when preparing for the next display while keeping the LEDs lit.
![]()