mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
readme: updated introduction paragraph
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
61f7803d92
commit
cf74a260a3
26
README.md
26
README.md
@ -1,29 +1,29 @@
|
|||||||
UPM (Useful Packages & Modules) Sensor/Actuator repository for MRAA
|
UPM (Useful Packages & Modules) Sensor/Actuator repository for MRAA
|
||||||
==============
|
==============
|
||||||
|
|
||||||
UPM is a high level repository for sensors that use MRAA. Each sensor links
|
The UPM repository provides software drivers for a wide variety of commonly
|
||||||
to MRAA and are not meant to be interlinked although some groups of sensors
|
used sensors and actuators. These software drivers interact with the
|
||||||
may be. Each sensor contains a header which allows to interface with it.
|
underlying hardware platform (or microcontroller), as well as with the attached
|
||||||
Typically a sensor is represented as a class and instantiated.
|
sensors, through calls to [MRAA](github.com/intel-iot-devkit/mraa) APIs.
|
||||||
|
|
||||||
The constructor is expected to initialise the sensor and parameters may be used
|
Programmers can access the interfaces for each sensor by including the sensor’s
|
||||||
to provide identification/pin location on the board.
|
corresponding header file and instantiating the associated sensor class. In the
|
||||||
|
typical use case, a constructor initializes the sensor based on parameters that
|
||||||
|
identify the sensor, the I/O protocol used and the pin location of the sensor.
|
||||||
|
|
||||||
Typically an update() function will be called in order to get new data from the
|
C++ interfaces have been defined for the following sensor/actuator types, but
|
||||||
sensor in order to reduce load when doing multiple reads to sensor data.
|
they are subject to change:
|
||||||
|
|
||||||
Although implementation and API design is up to the developer, C++ interfaces have
|
|
||||||
been defined for the following sensor/actuator types and developers are encouraged to
|
|
||||||
implement them. Interface header files are in the src/upm folder.
|
|
||||||
|
|
||||||
* Light controller
|
* Light controller
|
||||||
* Light sensor
|
* Light sensor
|
||||||
* Temperature sensor
|
* Temperature sensor
|
||||||
* Humidity sensor
|
* Humidity sensor
|
||||||
* Pressure sensor
|
* Pressure sensor
|
||||||
|
* Gas sensor
|
||||||
* Analog to digital converter
|
* Analog to digital converter
|
||||||
|
|
||||||
Feedback on interface design and additions for new types are welcome
|
The developer community is encouraged to help expand the list of supported
|
||||||
|
sensors and actuators and provide feedback on interface design.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user