miketeachman / micropython-rotary

MicroPython module to read a rotary encoder.
MIT License
269 stars 56 forks source link

TypeError: function takes 8 positional arguments but 7 were given #33

Open stoky996 opened 4 months ago

stoky996 commented 4 months ago

to whom it may concern

hey trying to use your rotary encoder have had this library working before but that was a while ago when i started coding in python and i tried it again recently for a project and for some reason i am getting a type error for arguments despite inputting all arguments i think i have used it correctly but if not then i would like to know why it is not working here are my copies in case i missed something regarding the files.

please ignore the fact they are pdf github of all websites decides that you can't upload .py files for some reason in the issues section.

rotary copy.pdf

rotary_irq_rp2 copy.pdf

here is my init statement: encoder = RotaryIRQ(pin_num_clk=Pin(2), pin_num_dt=Pin(3),min_val=0, max_val=menu_length,range_mode=RotaryIRQ.RANGE_WRAP,invert=False,half_step=False,pull_up=True)

regards jesse

stoky996 commented 4 months ago

edit here is another upload use this one instead for troubleshooting found out i was missing incr but still same issue shows up rotary copy.pdf rotary_irq_rp2 copy.pdf

stoky996 commented 4 months ago

i keep hitting it thinking it is a dropdown lol