@asergio
You'll want to use the RMT module

https://docs.pycom.io/chapter/tutorials/all/rmt.html