![](/media/cache/profiles/profileJosh.jpg.50x50_q85.jpg)
A speedtest
Dependencies: aconno_SEGGER_RTT CustomService
main.cpp@5:9ca5e2a69411, 2018-11-07 (annotated)
- Committer:
- jurica238814
- Date:
- Wed Nov 07 09:40:14 2018 +0000
- Branch:
- TestBranch
- Revision:
- 5:9ca5e2a69411
- Parent:
- 4:de5cf6b1e96b
nano module blinky
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 0:796985b808bc | 1 | #include "mbed.h" |
jurica238814 | 0:796985b808bc | 2 | |
jurica238814 | 5:9ca5e2a69411 | 3 | #define RED_LED_PIN (p12) |
jurica238814 | 5:9ca5e2a69411 | 4 | |
jurica238814 | 5:9ca5e2a69411 | 5 | DigitalOut redLed(RED_LED_PIN); |
jurica238814 | 0:796985b808bc | 6 | |
jurica238814 | 5:9ca5e2a69411 | 7 | int main() |
jurica238814 | 5:9ca5e2a69411 | 8 | { |
jurica238814 | 5:9ca5e2a69411 | 9 | while(true) |
jurica238814 | 5:9ca5e2a69411 | 10 | { |
jurica238814 | 5:9ca5e2a69411 | 11 | redLed = !redLed; |
jurica238814 | 5:9ca5e2a69411 | 12 | wait_ms(500); |
jurica238814 | 5:9ca5e2a69411 | 13 | } |
jurica238814 | 5:9ca5e2a69411 | 14 | } |
jurica238814 | 5:9ca5e2a69411 | 15 |