No description
Language:
C++
Created:
19.07.2022
Updated:
19.07.2022
Stars:
0
Visit on GitHub
An example making Logic board into a serial-connected peripheral.
Serial interface is connected to gpio 5 (rx) and 2 (tx).
All communication is text-based. The program expects line-separated commands and sends line-separated events. Arguments are separated by spaces.
set <x> <y> <red> <green> <blue>x, y to color Rgb(red, green, blue)showclearset_status <index> <red> <green> <blue>index to color Rgb(red, green, blue)show_statusclear_statusset_buzzer <state>state (0 or 1)pressed <id>id was pressedreleased <id>id was releasedButton ids come in sequence starting from top to bottom, left to right,
e.g. top left (0), top right (1), bottom left (2), bottom right (3), arrow up (4), arrow left (5), center (6), arrow right (7), arrow down (8).