Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stoky996 opened this issue Mar 11, 2024 · 2 comments
Open

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

stoky996 opened this issue Mar 11, 2024 · 2 comments

Comments

@stoky996
Copy link

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
Copy link
Author

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
Copy link
Author

i keep hitting it thinking it is a dropdown lol

@stoky996 stoky996 reopened this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant