start with Martin Sperls code for RPi