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

I need help with esp32 pins #154

Open
marwans200 opened this issue Jul 19, 2023 · 4 comments
Open

I need help with esp32 pins #154

marwans200 opened this issue Jul 19, 2023 · 4 comments

Comments

@marwans200
Copy link

pyfirmata\pyfirmata.py", line 218, in get_pin
raise InvalidPinDefError('Invalid pin definition: {0} at position 3 on {1}'
pyfirmata.pyfirmata.InvalidPinDefError: Invalid pin definition: d:16:i at position 3 on COM5

i get this error.

im a total noob trying to get input from a broken esp32 I found without wifi.
what do i do? i used pyfirmata before with an arduino uno but never with an esp32 or anything else

@pgrawehr
Copy link
Contributor

Unfortunately, I do not know what pyfirmata is trying to tell you there. The error message is quite unreadable. Which version of ConfigurableFirmata are you using?

Maybe @tino (maintainer of pyfirmata) has an idea what's going on. Maybe the board reports a mode that pyfirmata doesn't understand?

@tino
Copy link

tino commented Aug 21, 2023

I'm sorry, I don't think I can help you here. The only thing I can think of is that you'll probably set up a good definition for the board, depending on the layout.

@pgrawehr
Copy link
Contributor

pgrawehr commented Sep 2, 2023

@tino I'm very poor in python, but I think the code that parses the different pin modes is to simplistic. Have you ever tested against a recent ConfigurableFirmata version? A single pin can report 10 or more different possible modes, and you seem to only expect input, output or PWM.

@tino
Copy link

tino commented Oct 3, 2023

Have you ever tested against a recent ConfigurableFirmata version?

Nope. If new modes are present that certainly is missing indeed.

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

3 participants