An open API service indexing awesome lists of open source software.

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

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()`