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: main.cpp
- Revision:
- 2:12ca7ca1b80c
- Parent:
- 1:02f0f5d98031
- Child:
- 3:fa690e648ff7
--- a/main.cpp Mon Jan 13 17:12:34 2020 +0000
+++ b/main.cpp Mon Jan 13 17:26:41 2020 +0000
@@ -8,11 +8,14 @@
const int INIT = 0x03;
int main() {
+ int anzahl, anz;
uint8_t value = INIT;
- while(1) {
- myleds = 0x05;
- if(button)
- myleds = 0x0A;
- wait(0.1);
- }
+
+ nibbleLeds(value);
+ wait(0.1);
}
+
+void nibbleLeds(int value)
+{
+ myleds = value%16;
+}
\ No newline at end of file