Interfacing to Pi

Somewhat working.