lib for realteimMM funcs
MBedStation.h@1:b80e5f26b233, 2017-10-02 (annotated)
- Committer:
- ChrisAydon
- Date:
- Mon Oct 02 15:24:52 2017 +0000
- Revision:
- 1:b80e5f26b233
- Parent:
- 0:9f82ee1feae7
- Child:
- 4:af34fda1dfb0
Added extra lights to display
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GTNicholson | 0:9f82ee1feae7 | 1 | |
GTNicholson | 0:9f82ee1feae7 | 2 | #include "sensor_base.h" |
GTNicholson | 0:9f82ee1feae7 | 3 | #include <iostream> |
GTNicholson | 0:9f82ee1feae7 | 4 | #include <string> |
ChrisAydon | 1:b80e5f26b233 | 5 | #include "mbed.h" |
GTNicholson | 0:9f82ee1feae7 | 6 | |
GTNicholson | 0:9f82ee1feae7 | 7 | using namespace std; |
GTNicholson | 0:9f82ee1feae7 | 8 | |
GTNicholson | 0:9f82ee1feae7 | 9 | class MBedStation |
GTNicholson | 0:9f82ee1feae7 | 10 | { |
GTNicholson | 0:9f82ee1feae7 | 11 | public: |
GTNicholson | 0:9f82ee1feae7 | 12 | MBedStation(); |
GTNicholson | 0:9f82ee1feae7 | 13 | string name; |
GTNicholson | 0:9f82ee1feae7 | 14 | //sensor_base sensors[]; |
GTNicholson | 0:9f82ee1feae7 | 15 | int test[5]; |
GTNicholson | 0:9f82ee1feae7 | 16 | void setup(); |
ChrisAydon | 1:b80e5f26b233 | 17 | int ProcessResponse(char * Response); |
GTNicholson | 0:9f82ee1feae7 | 18 | sensor_base sensors[8]; |
GTNicholson | 0:9f82ee1feae7 | 19 | sensor_onoff sensor_0; |
GTNicholson | 0:9f82ee1feae7 | 20 | sensor_vin sensor_1; |
GTNicholson | 0:9f82ee1feae7 | 21 | sensor_vin sensor_2; |
GTNicholson | 0:9f82ee1feae7 | 22 | sensor_pulse sensor_3; |
ChrisAydon | 1:b80e5f26b233 | 23 | DigitalOut light_1; |
ChrisAydon | 1:b80e5f26b233 | 24 | DigitalOut light_2; |
GTNicholson | 0:9f82ee1feae7 | 25 | }; |