CTRL Library for Arduino

This library contains easy to use interfaces for buttons, rotary encoders, potentiometers, leds & multiplexers. All these real-world objects are represented by feature-rich software counterparts.

You can instantiate them in several ways to meet your project demands, and you can extend them as needed, adding whatever extra functionality you require.

button.ino
#include <CtrlBtn.h>
CtrlBtn button(1, 15);
void setup() {
Serial.begin(9600);
}
void loop() {
button.process();
if(button.isPressed()) {
Serial.println("Button pressed");
}
}

Introduction

About this library

The ctrl-arduino library offers easy-to-use interfaces for working with buttons, rotary encoders, potentiometers, LEDs, and multiplexers on Arduino boards. It simplifies the integration and control of these components, making it straightforward to read inputs, adjust values, and manage outputs. Designed for both hobbyists and professional developers, the library provides a clear and efficient API, reducing the complexity of Arduino programming. With its comprehensive documentation, ctrl-arduino allows you to quickly set up and start developing your projects, focusing on innovation rather than the intricacies of code. It is completely free and you can basically do with it whatever you like. You also are not required to buy us beer. Just pay it forward to the next person :)

Installation

Step-by-step guides to setting up your system and installing the library.

Using the library

Include the library and write your first sketch.