wrote new version of wrapper to use rpi gpio for next/pause/exit