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.
Diff: test.cpp
- Revision:
- 3:380bc168e247
- Parent:
- 2:db4c700f1898
- Child:
- 4:179695a6d7fd
diff -r db4c700f1898 -r 380bc168e247 test.cpp
--- a/test.cpp Mon Jan 13 17:30:18 2020 +0000
+++ b/test.cpp Mon Jan 13 17:32:06 2020 +0000
@@ -27,10 +27,14 @@
wait(0.1);
}
-
void printb(uint8_t x)
{
for(int i=sizeof(x)<<3;i;i--)
putchar('0'+((x>>(i-1))&1));
printf("\n");
}
+
+void nibbleLeds(int value)
+{
+ myleds=value%16;
+}
\ No newline at end of file