My Minimalist Arduino repeater controller sketch, converted to run on a Raspberry PI