Skip to content

EncoderController

apiel edited this page Feb 18, 2025 · 1 revision

EncoderController is a controller for rotary encoders. Config:

  • ENCODER: id gpioA gpioB [gpioBtn] will connect to gpioA and gpioB as an encoder. If gpioBtn is set, then it will connect to gpioBtn as a button.

Mpr121Controller

Mpr121Controller is a controller for MPR121 capacitive touch sensor.

Those sensors used i2c bus. To be able to use it, you need to install pigpio library:

sudo apt-get install libpigpio-dev

You will need to activate the i2c interface in your rasberry pi using raspi-config.

Tip

You can use i2cdetect to find the address of your i2c device. sudo apt-get install i2c-tools Use the command i2cdetect -y 1 to list the addresses. Config:

  • ADDRESS: 0x5c will connect to i2c device at address 0x5c and watch all touch inputs. This can be called multiple times to instantiate multiple i2c devices

NeotrellisController

Keypad interface using Adafruit Neotrellis M4.

  • SERIAL: /dev/ttyACM0 open connection using serial port