Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
sensors/PSE530.h@1:8d65cfc3a2e2, 2018-06-18 (annotated)
- Committer:
- Rhyme
- Date:
- Mon Jun 18 01:56:00 2018 +0000
- Revision:
- 1:8d65cfc3a2e2
- Parent:
- 0:846e2321c637
External sensor power on/off function enabled. (Previously disabled)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:846e2321c637 | 1 | #ifndef _PSE530_H_ |
Rhyme | 0:846e2321c637 | 2 | #define _PSE530_H_ |
Rhyme | 0:846e2321c637 | 3 | #include "mbed.h" |
Rhyme | 0:846e2321c637 | 4 | |
Rhyme | 0:846e2321c637 | 5 | /** |
Rhyme | 0:846e2321c637 | 6 | * PSE530 Pressure Sensor |
Rhyme | 0:846e2321c637 | 7 | */ |
Rhyme | 0:846e2321c637 | 8 | |
Rhyme | 0:846e2321c637 | 9 | class PSE530 { |
Rhyme | 0:846e2321c637 | 10 | public: |
Rhyme | 0:846e2321c637 | 11 | /** |
Rhyme | 0:846e2321c637 | 12 | * Constructor |
Rhyme | 0:846e2321c637 | 13 | */ |
Rhyme | 0:846e2321c637 | 14 | PSE530(AnalogIn *ain) ; |
Rhyme | 0:846e2321c637 | 15 | |
Rhyme | 0:846e2321c637 | 16 | /** |
Rhyme | 0:846e2321c637 | 17 | * destructor |
Rhyme | 0:846e2321c637 | 18 | */ |
Rhyme | 0:846e2321c637 | 19 | ~PSE530(void) ; |
Rhyme | 0:846e2321c637 | 20 | |
Rhyme | 0:846e2321c637 | 21 | /** |
Rhyme | 0:846e2321c637 | 22 | * getPressure |
Rhyme | 0:846e2321c637 | 23 | * @returns float pressure in kgf/cm2 |
Rhyme | 0:846e2321c637 | 24 | */ |
Rhyme | 0:846e2321c637 | 25 | float getPressure(void) ; |
Rhyme | 0:846e2321c637 | 26 | private: |
Rhyme | 0:846e2321c637 | 27 | AnalogIn *_ain ; |
Rhyme | 0:846e2321c637 | 28 | } ; |
Rhyme | 0:846e2321c637 | 29 | |
Rhyme | 0:846e2321c637 | 30 | #endif /* _PSE530_H_ */ |