Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 492 Bytes

File metadata and controls

21 lines (14 loc) · 492 Bytes

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.