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

digitalWrite error #26

Open
suprimex opened this issue Sep 24, 2024 · 2 comments
Open

digitalWrite error #26

suprimex opened this issue Sep 24, 2024 · 2 comments

Comments

@suprimex
Copy link

simple code like:
unsigned ledState = HIGH;
digitalWrite(ledPin, ledState);

causes error: invalid conversion from 'unsigned int' to 'PinStatus' [-fpermissive]

@suprimex
Copy link
Author

suprimex commented Oct 7, 2024

Looks like this project dead, unfortunately :(

@AlexanderMandera
Copy link
Owner

Hi, I just don't have the time right now to maintain it. I want to continue it in the future but currently I am busy.

You need to use the data type PinStatus I think it was instead of unsigned int for LOW/HIGH. I think in default Arduino it is a bit different where it uses a number, but I haven't got the opportunity to make it compatible for both.

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

2 participants