Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:d4209a7955c3
- Parent:
- 1:53649f3053fc
- Child:
- 3:83cf2072b25d
--- a/main.cpp Fri Jan 21 12:20:13 2022 +0000 +++ b/main.cpp Mon Jan 24 08:26:18 2022 +0000 @@ -14,8 +14,8 @@ buffer[znak] = c; znak++; if ((znak >= 3) && (buffer[znak-1] == 0xff) && (buffer[znak-2] == 0xff) && (buffer[znak-3] == 0xff)) { - if (buffer[2] == 0x04){ - myled1 = buffer[3]; + if (buffer[0] == 0x43){ + myled1 = !myled1; }else if (buffer[0] == 0x5A){ myled2 = buffer[1] - 48; }