s i
/
BLE_Blink
test blink
Revision 0:64cca7a07068, committed 2019-01-13
- Comitter:
- luxidio
- Date:
- Sun Jan 13 14:24:22 2019 +0000
- Commit message:
- update mbed to latest
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 64cca7a07068 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jan 13 14:24:22 2019 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +DigitalOut LED_1(LED1); +int main() { + while(1) { + LED_1 = 0; // LED is ON + wait(0.9); // 200 ms + LED_1 = 1; // LED is OFF + wait(1.0); // 1 sec + } +} \ No newline at end of file
diff -r 000000000000 -r 64cca7a07068 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Sun Jan 13 14:24:22 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/elessair/code/mbed-os/#f269e3021894