Blocks controlling the CODEBOX Tv display
Color
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.
Rainbow color
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.
Parameters:
- Color – color value, scope 0 – 100.
Rectangle
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).
Parameters:
- 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.
Example
Display number
Displays a number from 0 to 100 (100 is displayed as 00) in color defined by a COLOR block inserted before it.
Parameters
- Number – number to be displayed, scope 0 – 100.
Example
Display
Displays previously defined objects (rectangles and numbers) on the display. This block has to be always present do display anything on the display.
Clear 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.
Example
Connect the potentiometer to INPUT1.