Lab5-03_create_satcode_step6_lite_Q

Dependencies:   mbed HEPTA_CDH_lite HEPTA_COM_lite HEPTA_SENSOR_lite HEPTA_EPS_lite

Committer:
heptasat2021
Date:
Tue Aug 10 01:51:51 2021 +0000
Revision:
0:da0f6aca15b8
Child:
1:ddac5ec89167
Lab1-01_pc_communication_character_lite

Who changed what in which revision?

UserRevisionLine numberNew contents of line
heptasat2021 0:da0f6aca15b8 1 #include "mbed.h"
heptasat2021 0:da0f6aca15b8 2 Serial pc(USBTX,USBRX,9600);
heptasat2021 0:da0f6aca15b8 3 int main()
heptasat2021 0:da0f6aca15b8 4 {
heptasat2021 0:da0f6aca15b8 5 char a,b;
heptasat2021 0:da0f6aca15b8 6 a = 'A';
heptasat2021 0:da0f6aca15b8 7 pc.putc(a);
heptasat2021 0:da0f6aca15b8 8 for(int i=0;i<10;i++) {
heptasat2021 0:da0f6aca15b8 9 pc.printf("\r\n i=%d -- press any key -->",i);
heptasat2021 0:da0f6aca15b8 10 b = pc.getc();
heptasat2021 0:da0f6aca15b8 11 pc.putc(b);
heptasat2021 0:da0f6aca15b8 12 wait_ms(500);
heptasat2021 0:da0f6aca15b8 13 }
heptasat2021 0:da0f6aca15b8 14 pc.printf("\r\n End of program\r\n");
heptasat2021 0:da0f6aca15b8 15 }