- def init(self, baudrate=100000, polarity=0, phase=0, bits=8,
- firstbit=MSB, sck=None, mosi=None, miso=None):
- print("baudrate: " + baudrate)
- print("mode: " + (polarity<<1) | (phase))
+ # pylint: disable=too-many-arguments,unused-argument
+ def init(
+ self,
+ baudrate=100000,
+ polarity=0,
+ phase=0,
+ bits=8,
+ firstbit=MSB,
+ sck=None,
+ mosi=None,
+ miso=None,
+ ):
+ """Initialize the Port"""
+ # print("baudrate: " + str(baudrate))
+ # print("mode: " + str((polarity<<1) | (phase)))