Tandin Wangchuk
/
Lab1-01_PC_communication
Lab1
Revision 11:dbb3dde00a9f, committed 2017-09-06
- Comitter:
- HEPTA
- Date:
- Wed Sep 06 22:57:33 2017 +0000
- Parent:
- 10:a998300647dd
- Commit message:
- LAB_1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a998300647dd -r dbb3dde00a9f main.cpp --- a/main.cpp Mon Sep 04 17:13:12 2017 +0000 +++ b/main.cpp Wed Sep 06 22:57:33 2017 +0000 @@ -4,6 +4,7 @@ int main() { + pc.baud(9600); int i1 = 7; float i2 = 7.5; @@ -13,8 +14,10 @@ pc.printf("i2 = %f\r\n",i2); pc.printf("i3 = %c\r\n",i3); pc.putc(i3); + for(i1 = 0; i1 < 10; i1++) { pc.printf("i1 = %d\r\n",i1); pc.putc(pc.getc()); } + } \ No newline at end of file