https://github.com/grepsedawk/sensor
A simple Arduino Sensor/map wrapper
https://github.com/grepsedawk/sensor
arduino arduino-library
Last synced: about 2 months ago
JSON representation
A simple Arduino Sensor/map wrapper
- Host: GitHub
- URL: https://github.com/grepsedawk/sensor
- Owner: grepsedawk
- License: mit
- Created: 2017-06-02T01:38:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-06T00:45:54.000Z (over 7 years ago)
- Last Synced: 2025-03-27T22:48:36.173Z (over 1 year ago)
- Topics: arduino, arduino-library
- Language: C++
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sensor
A simple Arduino Sensor/map wrapper
## Usage
1. `#include ` at the top of your file
2. Instansiate with `Sensor sensor_name(pin, min_voltage, max_voltage, min_value, max_value);`
i.e. `Sensor temperature(A0, 515, 240, 70, 98);`
3. Use the mapped value by using `sensor_name.value()`
(or for the example, `temperature.value()`