togglegpio now takes pin input and on/off times