![](/media/cache/profiles/profileJosh.jpg.50x50_q85.jpg)
A speedtest
Dependencies: aconno_SEGGER_RTT CustomService
Diff: main.cpp
- Branch:
- TestBranch
- Revision:
- 5:9ca5e2a69411
- Parent:
- 4:de5cf6b1e96b
diff -r de5cf6b1e96b -r 9ca5e2a69411 main.cpp --- a/main.cpp Sun May 13 20:03:40 2018 +0000 +++ b/main.cpp Wed Nov 07 09:40:14 2018 +0000 @@ -1,16 +1,15 @@ -/* Copyright (c) 2018 Aconno. All Rights Reserved. - * - * Licensees are granted free, non-transferable use of the information. NO - * WARRANTY of ANY KIND is provided. This heading must NOT be removed from - * the file. - * - */ - #include "mbed.h" -DigitalOut led(p23); +#define RED_LED_PIN (p12) + +DigitalOut redLed(RED_LED_PIN); -int main(){ - led = !led; - wait_ms(250); -} \ No newline at end of file +int main() +{ + while(true) + { + redLed = !redLed; + wait_ms(500); + } + } + \ No newline at end of file