https://github.com/einararnason/analogsensor
Interface for implementing code for analog sensors
https://github.com/einararnason/analogsensor
analog-sensors cpp
Last synced: about 2 months ago
JSON representation
Interface for implementing code for analog sensors
- Host: GitHub
- URL: https://github.com/einararnason/analogsensor
- Owner: EinarArnason
- License: mit
- Created: 2020-04-18T17:00:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T13:18:33.000Z (almost 5 years ago)
- Last Synced: 2024-04-13T15:32:39.817Z (about 1 year ago)
- Topics: analog-sensors, cpp
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# AnalogSensor library
Interface for implementing code for analog sensors
## The What
This is a header only library interface that includes common non-platform specific functionality meant for analog sensors.
## The Why
The goal is to make cross platform implementation easier for analog sensor reading.
## The How
Because the library is header only, it only needs to be included.
```c++
#include "AnalogSensor.h"class SomeSensor : public AnalogSensor {
...
}
```### Using cmake
```cmake
add_subdirectory(${analogSensorDir})
target_link_libraries(${PROJECT_NAME} AnalogSensor)
```## The Who
Einar Arnason