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.

Initialize LED

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.

Set color of LED

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.

Show LED

Clear LED

To turn off all lit LEDs, use the Clear LED block.

Clear LED

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.

Clear buffer