HEPTA-Sat Training 2019
/
Lab3-01_Save_the_letters
Lab3
main.cpp@25:5fd40a170032, 2019-08-27 (annotated)
- Committer:
- HeptaSatTraining2019
- Date:
- Tue Aug 27 01:15:05 2019 +0000
- Revision:
- 25:5fd40a170032
- Parent:
- 24:cfcbac775459
- Child:
- 26:f15b873a018c
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_EPS.h" |
HeptaSatTraining2019 | 25:5fd40a170032 | 3 | #include "HEPTA_CDH.h" |
HeptaSatTraining2019 | 25:5fd40a170032 | 4 | #include "HEPTA_SENSOR.h" |
HeptaSatTraining2019 | 25:5fd40a170032 | 5 | #include "HEPTA_COM.h" |
umeume | 2:1c5cdb2c3e0f | 6 | |
umeume | 2:1c5cdb2c3e0f | 7 | Serial pc(USBTX,USBRX); |
HeptaSatTraining2019 | 21:92c25e853b87 | 8 | HEPTA_EPS eps(p16,p26); |
HeptaSatTraining2019 | 25:5fd40a170032 | 9 | HEPTA_CDH cdh(p5,p6,p7,p8,"sd"); |
HeptaSatTraining2019 | 21:92c25e853b87 | 10 | HEPTA_SENSOR sensor(p17, |
HeptaSatTraining2019 | 21:92c25e853b87 | 11 | p28,p27,0xD0,0x18, |
HeptaSatTraining2019 | 25:5fd40a170032 | 12 | p13,p14,p25,p24); |
HeptaSatTraining2019 | 21:92c25e853b87 | 13 | HEPTA_COM com(p9,p10); |
umeume | 2:1c5cdb2c3e0f | 14 | |
HEPTA | 6:a7d481b9d962 | 15 | DigitalOut myled(LED1); |
umeume | 5:c5ccb1b07e8f | 16 | |
umeume | 2:1c5cdb2c3e0f | 17 | int main() |
umeume | 2:1c5cdb2c3e0f | 18 | { |
HEPTA | 6:a7d481b9d962 | 19 | myled = 1; |
umeume | 5:c5ccb1b07e8f | 20 | wait(0.5); |
HEPTA | 6:a7d481b9d962 | 21 | myled = 0; |
umeume | 5:c5ccb1b07e8f | 22 | wait(0.5); |
umeume | 2:1c5cdb2c3e0f | 23 | } |