arduino-wch32v003
arduino-wch32v003 copied to clipboard
digitalWrite error
simple code like: unsigned ledState = HIGH; digitalWrite(ledPin, ledState);
causes error: invalid conversion from 'unsigned int' to 'PinStatus' [-fpermissive]
Looks like this project dead, unfortunately :(
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.
You wrote
unsigned ledState = HIGH;
you must write
usigned int ledState = HIGH;
or like @AlexanderMandera wrote
PinStatus ledState = HIGH;
doesn´t the same!!
NOTE: I didn´t test it.