micropython-rotary icon indicating copy to clipboard operation
micropython-rotary copied to clipboard

TypeError: function takes 8 positional arguments but 7 were given

Open stoky996 opened this issue 1 year ago • 2 comments

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 avatar Mar 11 '24 12:03 stoky996

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 avatar Mar 11 '24 12:03 stoky996

i keep hitting it thinking it is a dropdown lol

stoky996 avatar Mar 11 '24 12:03 stoky996