The example program for mbed pin-compatible platforms
Fork of mbed_blinky by
main.cpp@7:67bf1a101660, 2015-03-15 (annotated)
- Committer:
- mjohnm
- Date:
- Sun Mar 15 20:53:47 2015 +0000
- Revision:
- 7:67bf1a101660
- Parent:
- 4:81cea7a352b0
eh?;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan | 0:7dec7e9ac085 | 1 | #include "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
dan | 0:7dec7e9ac085 | 3 | DigitalOut myled(LED1); |
mjohnm | 7:67bf1a101660 | 4 | int test[16000],test2[16000]; |
dan | 0:7dec7e9ac085 | 5 | |
mjohnm | 7:67bf1a101660 | 6 | int main() |
mjohnm | 7:67bf1a101660 | 7 | { |
dan | 0:7dec7e9ac085 | 8 | while(1) { |
dan | 0:7dec7e9ac085 | 9 | myled = 1; |
dan | 0:7dec7e9ac085 | 10 | wait(0.2); |
dan | 0:7dec7e9ac085 | 11 | myled = 0; |
stevep | 4:81cea7a352b0 | 12 | wait(0.2); |
mjohnm | 7:67bf1a101660 | 13 | test[7] = 123456; |
mjohnm | 7:67bf1a101660 | 14 | test2[7] = 123456; |
mjohnm | 7:67bf1a101660 | 15 | test[3] = rnd(); |
stevep | 4:81cea7a352b0 | 16 | } |
dan | 0:7dec7e9ac085 | 17 | } |