Skip to content

Efficiently read rotary encoder signals with a Raspberry Pi Pico

License

Notifications You must be signed in to change notification settings

TuriSc/RP2040-Rotary-Encoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RP2040-rotary-encoder

Efficiently read rotary encoder signals with a Raspberry Pi Pico

This C library reads rotation data and switch presses from rotary encoders. It supports mechanical encoders like KY-040 (HW-040), or EC11.

It listens to GPIO_IRQ events and does not rely on continous polling.

Multiple encoders can be controlled simultaneously.

Requirements

Run git submodule update --init if you intend to compile the example.

Usage

An example program is included. Please see example/example.c.

Credits

This library is a fork of jkroso/pico-rotary-encoder.c, including code from jkroso/pico-button.c and jkroso/pico-gpio-interrupt.c, all by Jake Rosoman. MIT license.

Version history

  • 2024-08-18 - Bug fix
  • 2024-03-04 - First release

About

Efficiently read rotary encoder signals with a Raspberry Pi Pico

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 82.0%
  • CMake 18.0%