@Smeedy You must slightly modify this library. Add from machine import Pin and e.g. instead self.clk.init(clk.IN) write self.clk.init(Pin.IN) self.dio.init(self.dio.OUT) write self.dio.init(Pin.OUT) instead self.clk.low() write self.clk.value(0) instead Pin(4) write Pin('P4')