-
Notifications
You must be signed in to change notification settings - Fork 151
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
[v3.0.0] PIN_STATE_QUERY should also report current resolution #86
Comments
you can already get the resolution from the capability query |
also, I could add it in a backwards compatible way by adding it after byte 6... although I'd have to make |
I thought capability query would tell the maximum resolution of the pin. I am looking for the current resolution; similar to pin mode. I would hesitate to add it after byte six. I thought the point to have as big of a value as you need. That would cap you at two bytes - as you said... :-) I didn't read thoroughly until after I typed. |
Capability query is the current default resolution for the pin. There is currently no API in the protocol that enables changing the pin resolution (although I have had a proposal open for a number of years). This does get more complex as more boards now have DACs. PWM resolution may be able to change on a per pin basis (for non-Arduino boards). Analog input resolution can currently only be changed globally for Arduino, but perhaps for other platforms it can be changed on individual pins (although Firmata currently only supports Arduino and Particle). |
Fair enough. I just thought I would float the idea. I don't really have a use for it now, but as I complete the wiring API, I can see that it will become necessary. |
It's a worthwhile suggestion. I'm not sure yet whether it fits better into the |
The text was updated successfully, but these errors were encountered: