You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
along the lines of the multiarch improvements coming from #123, I am wondering if there would be a least common denominator for a (default) pin definition which would be appropriate for all of the several boards this library will support? I.e., does every board actually have A0, A1, A2, D2 or D3pins and such?
Would it make sense to improve this detail with respect to the provided examples and the documentation or am I chasing ghosts here?
Feel free to close this right away if you consider this nonsense ;].
With kind regards,
Andreas.
The text was updated successfully, but these errors were encountered:
I learned at #96 (comment) that we really should just use the digital pins as this would be totally sufficient. So while investigating I learned that Arduino Core for AVR defines PD0-PD7 constants and Arduino Core for ESP8266 defines D0-D7. The other architectures lack corresponding pin definitions as constants completely.
Previously, I defined D2 and D3 as compiler build flags in platformio.ini as a polyfill to support the other architectures, because I haven't known better.
From the status quo, I conclude it is not appropriate using cross-platform constants for digital pins in userspace code. Please object if I got something wrong here.
To further simplify things, I just decided to remove anything related to digital pin definitions completely by 83c9f51. Please let me know and reopen if you believe we should do otherwise.
Hi there,
along the lines of the multiarch improvements coming from #123, I am wondering if there would be a least common denominator for a (default) pin definition which would be appropriate for all of the several boards this library will support? I.e., does every board actually have
A0
,A1
,A2
,D2
orD3
pins and such?Would it make sense to improve this detail with respect to the provided examples and the documentation or am I chasing ghosts here?
Feel free to close this right away if you consider this nonsense ;].
With kind regards,
Andreas.
The text was updated successfully, but these errors were encountered: