LED

LED

With the LED on Digital Pin block, you can control an LED connected to one of the six digital pins. Select the pin in the Pin drop-down menu and choose whether the LED should be switched ‘on’ or ‘off’ in Status.

/images/2020-04-08-blockly-led/blockly-led-1-en.svg - Logo

BUILTIN_1 and BUILTIN_2 are the fixed LEDs on the senseBox MCU next to the red RESET button.

RGB LED

With the RGB LED block, you can control an RGB LED connected to one of the six digital pins. In the drop-down menu Pin you select the respective pin. Numbers from 0 to 255 can be attached to the red, green and blue block sections to determine the intensity of the different color components. A value of 0 means that there is no colour portion, a value of 255 means that the maximum colour portion is present.

/images/2020-04-08-blockly-led/blockly-led-2-en.svg - Logo

For example, the colour code for senseBox Green is

/images/2020-04-08-blockly-led/blockly-led-3-en.svg - Logo
×

Subscribe

The latest tutorials sent straight to your inbox.