Pixel Driver Update

JonnyMacJonnyMac Posts: 6,270
edited 2019-11-11 - 00:17:34 in Propeller 1
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.
Jon McPhalen
Hollywood, CA
It's Jon or JonnyMac -- please do not call me Jonny.

Comments

  • Jon, many thanks for your ongoing efforts, your older pixel driver is working fine for me in several projects. Exception is a project where I decided to have 10 strings of 21 LED's, each with a separate propeller driver pin. Could you give me a hint how to use your driver to get the highest frame rate in this case and how to synchronize pattern generation and output. I can of course rewire the project, but... well, there must be a smart way of doing this.

    Regards

    Nico Hattink
Sign In or Register to comment.