Skip to content

MultimedYam/SensorTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SensorTool

Arduino sensor library.

This is a small tool I wrote to simplify the need of having to initialize each individual sensor. This library helps simplify using analog and digital sensors in combination. For best usage: Use library in an array. A sample arduino sketch is included in this repository.

#####Usage The library makes use of a sensor type Enumeration to distinguish between Analog and Digital sensors.

#####To initialize a sensor:

Sensor sensor = Sensor( SensorPin, SensorType );

The 'SensorPin' is the int value of the pin the sensor is connected to. This can either be Digital Pin values or Analog Pin (A0-An) values.

Since the library comes with predefined SensorType enumerator, you may either use Analog or Digital in the 'SensorType' parameter.

#####To read a value out of a sensor use:

int Value = sensor.Read();

About

Arduino sensor library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages