Common code for DIYPinball firmware