What you should see in coolterm:\
Strings to send:
- Turn on LEDx:
+x
- Turn off LEDx:
-x
- e.g. to turn on LED1:
+1
; to turn off LED3:-3
.
- e.g. to turn on LED1:
- Toggle LEDx:
/x
- LED should keep toggling until a
+
or-
command is sent.
- LED should keep toggling until a
You should parse these commands on the mainboard and perform the appropriate action.
note: in C, you do not directly compare two strings (i.e. " "==" "
is invalid), instead, you compare each char (i.e. ' '==' '
is valid)