repost of original RPI version.

Cubox has now separate -6q version of this lib