Usage of each block

日本語のページ

Initializing NeoPixel

Initializing NeoPixel

Initialize NeoPixel.

The "pin" parameter specifies the pin to which the NeoPixel data input is connected.
In advance, use the "Pin assignment" block in the "Basic I/O" group to assign the pin to the variable.

The "Number of pixels" parameter specifies the number of pixels in the NeoPixel.
Also, if the color is not correct when the light is turned on, try changing the order in which the RGB signals are sent using the "color order" parameter.

Set pixel color

Set pixel color

Sets the color of each pixel in the NeoPixel.
However, this block only sets the color in memory.
After using this block, you can update the actual display by using the "Update display" block.

Set the color of all pixels

Set the color of all pixels

Sets the color of all pixels of the NeoPixel to the same color.
However, this block only sets the color in memory.
After using this block, you can update the actual display by using the "Update display" block.

Update display

Refresh display

Update the NeoPixel display according to the results of the "Set pixel color" and "Set the color of all pixels" blocks.