We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My code is full of
if (pin == 1 || pin == 23) { wpi.pinMode(pin, wpi.PWM_OUTPUT); // hardware PWM wpi.digitalWrite(pin, value); } else { wpi.softPwmCreate(pin, 0, value / 10.23); }
these if's to distinguish between software PWM and hardware PWM pins.
Is there a better solution? Like an automatic switch inside the library?
THANKS
The text was updated successfully, but these errors were encountered:
set WPI_MODE_GPIO as a default mode also for CM4 (WiringPi#92)
10be948
No branches or pull requests
My code is full of
these if's to distinguish between software PWM and hardware PWM pins.
Is there a better solution? Like an automatic switch inside the library?
THANKS
The text was updated successfully, but these errors were encountered: