Controlling pins using MicroPython