Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)

Dependencies:   UniGraphic mbed vt100

18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。

Committer:
Rhyme
Date:
Fri Apr 13 04:19:23 2018 +0000
Revision:
0:846e2321c637
power to color sensor on/off test OK. Currently the function is disabled.

Who changed what in which revision?

UserRevisionLine numberNew 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_ */