Inchang Chong
/
mbed-os-eiot
the first
main.cpp@1:5f9cd5aa577f, 2018-09-16 (annotated)
- Committer:
- icchong
- Date:
- Sun Sep 16 08:18:10 2018 +0000
- Revision:
- 1:5f9cd5aa577f
- Parent:
- 0:37df34174027
the first
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
icchong | 0:37df34174027 | 1 | #include <mbed.h> |
icchong | 0:37df34174027 | 2 | |
icchong | 0:37df34174027 | 3 | DigitalOut myLed(LED1); |
icchong | 0:37df34174027 | 4 | |
icchong | 0:37df34174027 | 5 | int main(int argc, char* argv[]) |
icchong | 0:37df34174027 | 6 | { |
icchong | 1:5f9cd5aa577f | 7 | while (true) { |
icchong | 1:5f9cd5aa577f | 8 | myLed = !myLed; |
icchong | 1:5f9cd5aa577f | 9 | wait(0.5); |
icchong | 1:5f9cd5aa577f | 10 | } |
icchong | 0:37df34174027 | 11 | } |