I also have a library that I wrote to allow me to use similar devices as 'pixels' rather than buffers.
A version is in my library archive (link in the signature block below). Currently working on a much more advanced version but not ready for the public yet.