Tried to set this up using your example, the script seems to hang during setting the output pin. # board.output(13)