Color sensor reset at the end of calibration added. sensor id auto assignment was changed to be a fixed value assignment to avoid sensor id shift when some sensor is absent.
Dependencies: UniGraphic mbed vt100
Diff: sensors/PSE530.h
- Revision:
- 0:ce97f6d34336
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sensors/PSE530.h Fri Feb 23 05:40:22 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