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

Capability response handler bug #19

Open
FrantisekBeranekTSE opened this issue Jul 23, 2024 · 0 comments
Open

Capability response handler bug #19

FrantisekBeranekTSE opened this issue Jul 23, 2024 · 0 comments

Comments

@FrantisekBeranekTSE
Copy link

In function "pin_list_to_board_dict" on line 191 it is assumed that board sends capability response for digital pin in format: [DIGITAL_INPUT, 1, DIGITAL_OUTPUT, 1] but in StandardFirmata example in Arduino it is [DIGITAL_INPUT, 1, INPUT_PULLUP, 11 DIGITAL_OUTPUT, 1].

I think it would be possible to solve this by changing line 191 with this:
if pin[j:j + 2] == [0, 1]:
as all digital pis are reported by arduino as input, input_pullup and output.

This bug is only relevant when using auto setup (layout = None).

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