Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:programmingblocks:matrix [2018/02/21 14:45] – kniwwelino | en:programmingblocks:matrix [2018/05/24 11:48] (current) – [Blocks] kniwwelino | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Matrix ===== | ||
+ | ==== Blocks ==== | ||
+ | |||
+ | === Write a text on the matrix === | ||
+ | {{: | ||
+ | |||
+ | Replace '' | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | === Clear the matrix === | ||
+ | {{: | ||
+ | |||
+ | This block switches off all the LEDs of the matrix. | ||
+ | |||
+ | \\ | ||
+ | === Show an icon on the matrix === | ||
+ | {{: | ||
+ | |||
+ | With this block you can define an image to be shown on the matrix. Each of the squares corresponds to one of the LEDs of the matrix. Click on the square to color it in red and through this, switch it on. If you click again, the LED switches off again. | ||
+ | |||
+ | \\ | ||
+ | === Predefined icon === | ||
+ | {{: | ||
+ | |||
+ | This block represents a predefined icon. Choose one of the list and use the block '' | ||
+ | |||
+ | \\ | ||
+ | === Custom icon === | ||
+ | {{: | ||
+ | |||
+ | This block represents an icon. Each of the squares corresponds to one of the LEDs of the matrix. Click on the square to color it in red and through this, switch it on. If you click again, the LED switches off again. | ||
+ | |||
+ | \\ | ||
+ | === Draw a pixel on the matrix === | ||
+ | {{: | ||
+ | |||
+ | With this block you switch an individual pixel of the matrix on or off. | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | |||
+ | === Read a pixel on the matrix === | ||
+ | {{: | ||
+ | |||
+ | With this block you can read the current state of a LED of the matrix. Returns '' | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | === Set matrix brightness === | ||
+ | {{: | ||
+ | |||
+ | This block allows you to set the brightness of all the LEDs of the matrix. The value must be in between '' | ||
+ | |||
+ | \\ | ||
+ | === Set matrix blinkrate === | ||
+ | {{: | ||
+ | |||
+ | With this block you can make the matrix blink. After using it, all next assignments on the matrix will blink. | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | ==== Example ==== | ||
+ | |||
+ | The following image shows an example for programming the matrix: a heart blinking in two different brightnesses. | ||
+ | |||
+ | You can make such an animation by defining a sequence of images. For each image you can change the brightness. Use the block '' | ||
+ | |||
+ | {{: |