Lab5-00_transmit_count_up_lite
Dependencies: mbed HEPTA_COM_lite
main.cpp@2:a8c3ef97dce8, 2021-08-25 (annotated)
- Committer:
- heptasat2021
- Date:
- Wed Aug 25 03:36:53 2021 +0000
- Revision:
- 2:a8c3ef97dce8
- Parent:
- 1:ddac5ec89167
For Hepta-Sat Lite
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
heptasat2021 | 0:da0f6aca15b8 | 1 | #include "mbed.h" |
heptasat2021 | 2:a8c3ef97dce8 | 2 | #include "HEPTA_COM.h" |
heptasat2021 | 2:a8c3ef97dce8 | 3 | HEPTA_COM com(PA_9,PA_10,9600); |
heptasat2021 | 0:da0f6aca15b8 | 4 | Serial pc(USBTX,USBRX,9600); |
heptasat2021 | 0:da0f6aca15b8 | 5 | int main() |
heptasat2021 | 0:da0f6aca15b8 | 6 | { |
heptasat2021 | 2:a8c3ef97dce8 | 7 | pc.printf("Xbee Count Up Mode\r\n"); |
heptasat2021 | 2:a8c3ef97dce8 | 8 | for(int i=0;i<10;i++){ |
heptasat2021 | 2:a8c3ef97dce8 | 9 | com.printf("num=%d\r\n",i); |
heptasat2021 | 2:a8c3ef97dce8 | 10 | wait_ms(1000); |
heptasat2021 | 0:da0f6aca15b8 | 11 | } |
heptasat2021 | 0:da0f6aca15b8 | 12 | } |