Skip to content

digitalWrite has a wrong signature #68

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

Open
Avamander opened this issue Feb 11, 2020 · 2 comments
Open

digitalWrite has a wrong signature #68

Avamander opened this issue Feb 11, 2020 · 2 comments

Comments

@Avamander
Copy link

Avamander commented Feb 11, 2020

Currently MegaAVR is one of the very few platforms where digitalWrite doesn't take a boolean for digitalWrite (there's no digitalWrite(uint8_t pin, bool val)), this causes unnecessary incompatibility with a massive selection of libraries out there.

The function's signature should either be changed or the core should overload the function.

@MCUdude
Copy link
Contributor

MCUdude commented Apr 7, 2020

The latest release (1.8.6) should have this issue fixed.

@Michael-Brodsky
Copy link

So does attachInterrupt and, as usual, there's no actual signature in the docs, just the usual Arduino noob stuff. Usable ISO/IEC style docs would be nice but I guess that would confuse people who think everything should be type 'int'.

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