![](/media/cache/group/1711.jpg.50x50_q85.jpg)
Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
Diff: sensors/PSE530.h
- Revision:
- 0:846e2321c637
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sensors/PSE530.h Fri Apr 13 04:19:23 2018 +0000 @@ -0,0 +1,30 @@ +#ifndef _PSE530_H_ +#define _PSE530_H_ +#include "mbed.h" + +/** + * PSE530 Pressure Sensor + */ + +class PSE530 { +public: +/** + * Constructor + */ + PSE530(AnalogIn *ain) ; + +/** + * destructor + */ + ~PSE530(void) ; + +/** + * getPressure + * @returns float pressure in kgf/cm2 + */ + float getPressure(void) ; +private: + AnalogIn *_ain ; +} ; + +#endif /* _PSE530_H_ */ \ No newline at end of file