LOFI Blocks Functions for CODEBOX Tv

Learn about all the blocks controlling the display from CODEBOX Tv.

Connecting electronic modules

  • Display → OUTPUT 3.
  • Power → USB cable → computer.

Color

LOFI_Robot_TV_blocks

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

LOFI_Robot_TV_blocks (3)

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

LOFI_Robot_TV_blocks (4)

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

wyświetlacz prostokąt codebox tv
LOFI_Robot_TV_blocks (8_2)

Display number

LOFI_Robot_TV_blocks (5)

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

wyświetlacz prostokąt codebox tv

LOFI_Robot_TV_blocks (1)

Show

Displays previously defined objects (rectangles and numbers) on the display. This block has to be always present to display anything on the display.

Clear display

LOFI_Robot_TV_blocks (6)

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 blank display, you need to clear the display using this block each time.

Example

Connect the potentiometer to INPUT1.

LOFI_Robot_displaying_numbers