Blocks controlling the CODEBOX Tv display
Defining the color of LEDs in RGB:
- R – red component, scope 0 – 100.
- G – green component, scope 0 – 100.
- B – blue component, scope 0 – 100.
Allows you to define the color with just one component. This block is great for generating fluent transitions between colors however, it doesn’t allow for changing the brightness level.
- Color – color value, scope 0 – 100.
Displays a rectangle by defining the coordinates of the upper-left corner, height, and width. The rectangle’s color can be defined by inserting a COLOR block before it (the default color of the rectangle is white).
- X – horizontal coordinates of the upper-left corner of the rectangle, scope 0 – 7.
- Y – vertical coordinates of the upper-left corner of the rectangle, scope 0 – 7.
- Width – width of the rectangle, scope 1 – 8.
- Height – height of the rectangle, scope 1 – 8.
Displays a number from 0 to 100 (100 is displayed as 00) in color defined by a COLOR block inserted before it.
- Number – number to be displayed, scope 0 – 100.
Displays previously defined objects (rectangles and numbers) on the display. This block has to be always present do display anything on the display.
Clears all the LEDs on the display. Without this block, any new image will be displayed on top of the previous one. In order to display an image or animation on a “clean slate”, you need to clear the display using this block each time.
Connect the potentiometer to INPUT1.