adds rotary encoder+SPI based Display: ili9341

This commit is contained in:
Robert Schauklies 2025-08-23 18:55:01 +02:00
parent dd2a5bf637
commit a8f8586756
11 changed files with 2184 additions and 269 deletions

View file

@ -90,7 +90,7 @@ class Rotary(object):
max_val=None, reverse=None, range_mode=None):
# disable DT and CLK pin interrupts
self._hal_disable_irq()
#print("SETTING VALUE!")
if value is not None:
self._value = value
if min_val is not None:
@ -124,6 +124,7 @@ class Rotary(object):
self._listener.remove(l)
def _process_rotary_pins(self, pin):
print(self._value)
old_value = self._value
clk_dt_pins = (self._hal_get_clk_value() <<
1) | self._hal_get_dt_value()