-
Notifications
You must be signed in to change notification settings - Fork 17
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
Pulse Width Modulation #7
Comments
Gross. Literally just toggling really fast. https://github.com/larsks/raspberry-gpio-python-code/blob/6d62222bd5384eb2dc2ed13065ea28dcb506cc67/source/soft_pwm.c#L90-L114 |
I can work on this if this project is still in development? |
The .NET IOT device bindings library has a software PWM implementation that we can wrap. A quick demo found that the high precision setting is needed for smooth (aka not stepped) transitions and to prevent flickering, but this pins a high priority thread at 100%. That means full RGB LED control would use 75% of a Raspberry Pi's CPU. 60Hz seems acceptable from a visual standpoint, though we may want to double that to 120Hz for those with acute vision, if going with high precision; without high precision, 120Hz flickers.
|
Implemented in |
Being able to dim / slow components would be cool. I have no idea how to go about doing it.
The text was updated successfully, but these errors were encountered: