Linkito can communicate with different hardware like Arduino, using Serial port.
To do this, you need to enable the Serial Module in the Options menu, and configure the right port and speed. Click on activate, and the game is ready to interact with serial port.
You have some blocks in the editor that uses this module :
- SerialReceiver : output all messages received on serial port
- SerialSender : allow to send messages to serial port
- SerialCommand : allow to detect special message from serial port, and parse the first parameter.
Protocol
The protocol is really simple :
[id command] [parameter1] [parameter2] NL
- All are sent as string
- Delimiter is a space
- Need a new line at the end