/ArduinoSensorLibrary

ArduinoSensorLibrary (ASL) is a simple library for the Arduino Uno r3 to make sensors and other electrical components easier to implement and use.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Arduino Sensor Library (ASL)

ASL is a library that makes it easier to implement sensors and other components to the Arduino Uno r3. This was made to simplify large chuncks of code into something more readable and English for the rest of my team can understand what the arduino code does.

Supported Components

Component Notes

  • You can use the Diodes object for other things such as transistors and relays or anything that requires 1 selector pin and only has a On or Off state.
  • Has an inbuilt macro LOG("message", 1) where it prints to the serial monitor. The second parameter is either a 1 or 0 where 1 prints a new line and 0 doesn't.

How to use?

  1. git clone https://github.com/lcox74/ArduinoSensorLibrary into your Arduino library folder, typically found in your Documents folder.
  2. Open the Arduino IDE.
  3. On your toolbar click Sketch->Include Library->ArduinoSensorLibrary it might have -master at the end of it depending on how you cloned it.
  4. If it worked then #include <ASL.h> would have appeared on top of your file.
  5. You're set to go.

If the library didn't show up in your Include Library then you can put the ArduinoSensorLibrary folder into your solution folder. The folder your script is saved, the folder that has {your script name}.ino in it. Then to include it into your script put #include "ArduinoSensorLibrary/ASL.h" at the top of your file.