Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:programmingblocks:messages [2018/02/22 14:41] – kniwwelino | en:programmingblocks:messages [2018/05/24 15:06] (current) – kniwwelino | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Messages ===== | ||
| + | ==== Blocks ==== | ||
| + | === Set group for messaging === | ||
| + | {{: | ||
| + | |||
| + | This block sets a group for all the messages sent and received in this program. Replace '' | ||
| + | |||
| + | To exchange messages with another friend, the friend needs to use the same group name in his/her program. | ||
| + | |||
| + | The block cannot be attached to another block, it is only executed once at the start of Kniwwelino. Just place it before the '' | ||
| + | |||
| + | \\ | ||
| + | === Connect RGB LED to messages === | ||
| + | {{: | ||
| + | |||
| + | With this block, you can connect your RGB LED to messages. As soon as a message with a color arrives on the topic '' | ||
| + | |||
| + | The block cannot be attached to another block, it is only executed once at the start of Kniwwelino. Just place it before the '' | ||
| + | |||
| + | \\ | ||
| + | === Connect matrix to messages === | ||
| + | {{: | ||
| + | |||
| + | With this block, you can connect your matrix messages. As soon as a message with a text or icon arrives on the topic '' | ||
| + | |||
| + | The block cannot be attached to another block, it is only executed once at the start of Kniwwelino. Just place it before the '' | ||
| + | |||
| + | \\ | ||
| + | === Send a text message === | ||
| + | {{: | ||
| + | |||
| + | This block allows you to send a text to a topic. Use the topic '' | ||
| + | |||
| + | \\ | ||
| + | === Send icon to a topic === | ||
| + | {{: | ||
| + | |||
| + | This block allows you to send an icon to a topic. Use the topic '' | ||
| + | |||
| + | \\ | ||
| + | === Set color to a topic === | ||
| + | {{: | ||
| + | |||
| + | This block allows you to send a color to a topic. Use the topic '' | ||
| + | |||
| + | \\ | ||
| + | === Attach variable to a topic === | ||
| + | {{: | ||
| + | |||
| + | With this block, you can attach a variable to a topic. As soon as a message arrives on that topic, it will be set to that variable. | ||
| + | |||
| + | To use this block you need to first define a variable in '' | ||
| + | |||
| + | \\ | ||
| + | ==== Example ==== | ||
| + | You can find an example for using messages in the sample projects [[en: | ||
| + | |||
| + | The project [[en: | ||