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
I see that digitalWrite() has added a "TOGGLE" option, which is currently defined in Arduino.h: #define TOGGLE 2
However, that argument is defined as a PinStatus enum, and using toggle in a program results in a warning:
/Volumes/MacOS/HD-Users/BillW/Documents/Arduino/-test-/test_togglespeed_digitalWrite/test_togglespeed_digitalWrite.ino:46:29: warning: invalid conversion from 'int' to 'PinStatus' [-fpermissive]
digitalWrite(PIN, TOGGLE);
^
TOGGLE should be defined as a member of the enum instead: #define TOGGLE CHANGE
(separately, I'm a little uncomfortable about the use of the PinStatus type for digitalRead and digitalWrite, but that's a separate issue.)
The text was updated successfully, but these errors were encountered:
I see that digitalWrite() has added a "TOGGLE" option, which is currently defined in Arduino.h:
#define TOGGLE 2
However, that argument is defined as a PinStatus enum, and using toggle in a program results in a warning:
TOGGLE should be defined as a member of the enum instead:
#define TOGGLE CHANGE
(separately, I'm a little uncomfortable about the use of the PinStatus type for digitalRead and digitalWrite, but that's a separate issue.)
The text was updated successfully, but these errors were encountered: