Skip to content

Filtered user input to FreeRTOS Queue for the ESP32

License

Notifications You must be signed in to change notification settings

joltwallet/easy_input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Input

A library that handles the setup, digital filtering, and queueing of user inputs for the ESP32.

Design

The goal of this library is to abstract away an input method into a FreeRTOS Queue. A message on this queue is a uint64_t bitmask for whatever inputs were activated since the last polling cycle. This abstraction allows easy swapping out of input methods; for example, switching out pushbuttons for touch sensors.

Input types

  • Bouncy pushbuttons - No hardware filtering necessary.

Todo:

  • Simultaneous button press logic

  • Automate code generation of easy_input_push_button_task

  • Hold press for buttons.

Unit Tests

Unit tests can be used by selecting this library with a target using the ESP32 Unit Tester.

make flash TEST_COMPONENTS='easy_input' monitor

The unit tests (in the test folder) is a good source of examples on how to use this library.

Related Projects

menu8g2 - menuing library using easy_input for user input and u8g2 for graphics.

About

Filtered user input to FreeRTOS Queue for the ESP32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published