Pixel Driver Update
JonnyMac
Posts: 9,102
I'm helping a friend with a Christmas display controller and thought that I should update my unified RGBW pixel driver.
Change:
-- now supports single-shot (default) and auto-refresh (old driver) modes.
A friend reported occasional ghosting when using auto-refresh with long strips. I think this may have happened because buffer updates occurred while the driver cog was part-way through an update cycle (race condition).
Starting the driver hasn't changed, though one is able to use a 0 reset delay now (this should only be done in 1-shot mode). After starting the driver, the pixels can be updated with the .show() method. This will refresh the pixels and wait for another call to .show(). If you'd like the pixels to auto-update call the .auto_run() method after starting the driver.
Before updating ObEx I am posting here for testing and feedback for those who are inclined.
Thank you.
Change:
-- now supports single-shot (default) and auto-refresh (old driver) modes.
A friend reported occasional ghosting when using auto-refresh with long strips. I think this may have happened because buffer updates occurred while the driver cog was part-way through an update cycle (race condition).
Starting the driver hasn't changed, though one is able to use a 0 reset delay now (this should only be done in 1-shot mode). After starting the driver, the pixels can be updated with the .show() method. This will refresh the pixels and wait for another call to .show(). If you'd like the pixels to auto-update call the .auto_run() method after starting the driver.
Before updating ObEx I am posting here for testing and feedback for those who are inclined.
Thank you.
Comments
Regards
Nico Hattink
You know... I have converted lots of C code to Spin -- why not go the other way? You have my source; it might be a fun exercise.
Another route may be the FastSpin compiler which I am told allows one to use libraries written in Spin inside C apps. That sounds kind of neat.
Still available and might be a solution to convert the existing spin object to C.
FastSpin does indeed allow mixed languages, It is just amazing how nice it is integrated.
Enjoy!
Mike