This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Accept control commands via USB. | |
* | |
* Commands start with '!' and end with '.' | |
* Commands have three parts: action, pin, value: !AAPPVV. | |
* | |
* E.g. '!01p101.' is DigitalWrite, Pin1, value = 1 | |
* | |
* Note: This is currently *very* crude. Much improvement could be made. | |
* I think the use of strncpy is eating a lot of memory. Refactor? |