HeptaSat
Dependencies: HEPTA_SENSOR mbed HEPTA_EPS HEPTA_COM HEPTA_CDH
main.cpp@30:f0b0b75cee61, 2022-08-19 (annotated)
- Committer:
- csmk18112
- Date:
- Fri Aug 19 05:18:48 2022 +0000
- Revision:
- 30:f0b0b75cee61
- Parent:
- 25:5fd40a170032
fd
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"); |
csmk18112 | 30:f0b0b75cee61 | 10 | HEPTA_SENSOR sensor(p17, |
csmk18112 | 30:f0b0b75cee61 | 11 | p28,p27,0x19,0x69,0x13, |
csmk18112 | 30:f0b0b75cee61 | 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 | } |