HEPTA-Sat Training 2022
/
Lab5-01_count_up_xbee
hepta
main.cpp@30:e639879fe1a4, 24 months ago (annotated)
- Committer:
- RyusukeIwata
- Date:
- Mon Nov 14 09:23:44 2022 +0000
- Revision:
- 30:e639879fe1a4
- Parent:
- 29:420811bc3071
changed to rawserial
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:bdbd3d6fc5d5 | 1 | #include "mbed.h" |
HeptaSatTraining2019 | 25:5fd40a170032 | 2 | #include "HEPTA_COM.h" |
umeume | 2:1c5cdb2c3e0f | 3 | |
RyusukeIwata | 29:420811bc3071 | 4 | RawSerial pc(USBTX,USBRX,9600); |
HeptaSatTraining2019 | 21:92c25e853b87 | 5 | HEPTA_COM com(p9,p10); |
umeume | 2:1c5cdb2c3e0f | 6 | |
umeume | 2:1c5cdb2c3e0f | 7 | int main() |
umeume | 2:1c5cdb2c3e0f | 8 | { |
HeptaSatTraining2019 | 26:069145e20770 | 9 | pc.printf("Xbee Count Up Mode\r\n"); |
HeptaSatTraining2019 | 26:069145e20770 | 10 | for(int i = 0; i < 10; i++) { |
HeptaSatTraining2019 | 26:069145e20770 | 11 | com.printf("num = %d\r\n",i); |
HeptaSatTraining2019 | 26:069145e20770 | 12 | wait(1.0); |
HeptaSatTraining2019 | 26:069145e20770 | 13 | } |
umeume | 2:1c5cdb2c3e0f | 14 | } |