Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:06d0c3f1e8d8, 2013-07-22 (annotated)
- Committer:
- GBR
- Date:
- Mon Jul 22 03:15:28 2013 +0000
- Revision:
- 0:06d0c3f1e8d8
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GBR | 0:06d0c3f1e8d8 | 1 | #include "mbed.h" |
GBR | 0:06d0c3f1e8d8 | 2 | |
GBR | 0:06d0c3f1e8d8 | 3 | DigitalOut myled(LED1); |
GBR | 0:06d0c3f1e8d8 | 4 | |
GBR | 0:06d0c3f1e8d8 | 5 | int main() { |
GBR | 0:06d0c3f1e8d8 | 6 | int i; |
GBR | 0:06d0c3f1e8d8 | 7 | while(1) { |
GBR | 0:06d0c3f1e8d8 | 8 | myled = 1; |
GBR | 0:06d0c3f1e8d8 | 9 | wait(0.2); |
GBR | 0:06d0c3f1e8d8 | 10 | myled = 0; |
GBR | 0:06d0c3f1e8d8 | 11 | wait(0.2); |
GBR | 0:06d0c3f1e8d8 | 12 | //int i; |
GBR | 0:06d0c3f1e8d8 | 13 | char *c; |
GBR | 0:06d0c3f1e8d8 | 14 | c=new char[50]; |
GBR | 0:06d0c3f1e8d8 | 15 | sprintf(c, "hello%d", i); |
GBR | 0:06d0c3f1e8d8 | 16 | printf("%s\r\n",c); |
GBR | 0:06d0c3f1e8d8 | 17 | i++; |
GBR | 0:06d0c3f1e8d8 | 18 | } |
GBR | 0:06d0c3f1e8d8 | 19 | } |