Robin Handy
/
test1
main lauflicht test
Diff: main.cpp
- Revision:
- 2:54c01dcbfbc8
- Parent:
- 1:5756521122a8
- Child:
- 3:f82a2b7fb723
--- a/main.cpp Mon Jan 13 17:12:28 2020 +0000 +++ b/main.cpp Mon Jan 13 17:16:18 2020 +0000 @@ -2,9 +2,15 @@ #define BUTTON1 p14 +void nibbleLeds(int value); + BusOut myleds(LED1, LED2, LED3, LED4); DigitalIn button(BUTTON1); + + + + const int INIT = 0x03; int main() { @@ -16,5 +22,9 @@ } - } +} +void nibbleLeds(int value){ + myleds = value%16; +} +