Skip to content

Commit

Permalink
Port of the rotary module to ESP32 (#3625)
Browse files Browse the repository at this point in the history
* Ported rotary driver. Compiles but not tested.

* Added the rotary switch driver to the esp32 version

* Review comments. Also ensure that we have GPIO if we have ROTARY.

* Allow use of GPIO 0

* Another bad piece of documentation

* Fix docs and also free the timer

* Now adds a self reference to prevent GC until after close has been called and
any queued messages have been flushed.

* Simplified the code a bit
  • Loading branch information
pjsg committed Apr 27, 2024
1 parent 4cdebe7 commit 92f37de
Show file tree
Hide file tree
Showing 6 changed files with 817 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/modules/CMakeLists.txt
Expand Up @@ -30,6 +30,8 @@ set(module_srcs
"otaupgrade.c"
"ow.c"
"pipe.c"
"rotary_driver.c"
"rotary.c"
"rmt.c"
"rtcmem.c"
"qrcodegen.c"
Expand Down
7 changes: 7 additions & 0 deletions components/modules/Kconfig
Expand Up @@ -232,6 +232,13 @@ menu "NodeMCU modules"
Includes the rmt module to use the ESP32's built-in
remote control hardware.

config NODEMCU_CMODULE_ROTARY
bool "Rotary switch input device"
default "n"
select NODEMCU_CMODULE_GPIO
help
Includes the rotary module which allows easy access to one or more rotary switches.

config NODEMCU_CMODULE_RTCMEM
bool "Access to a limited amount of battery backed memory (rtcmem)"
default "n"
Expand Down

0 comments on commit 92f37de

Please sign in to comment.