dmadison / AnalogSelector-Arduino

Arduino library for reading a potentiometer as a multi-selector switch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnalogSelector Library for Arduino

This library provides an easy and robust way to read a potentiometer or other analog input as a multi-selector switch.

Getting Started

AnalogSelector selector(Pin, NumPositions);

void setup() {
	selector.begin();
}

void loop() {
	int option = selector.getPosition();
}

License

This library is licensed under the terms of the MIT license. See the LICENSE file for more information.

About

Arduino library for reading a potentiometer as a multi-selector switch

License:MIT License


Languages

Language:C++ 100.0%