SPI

SPI for pycom systems.

class mauzr.platform.pycom.spi.Bus(baudrate=1000000)

Bases: object

Access SPI on pycom.

Parameters:baudrate (int) – Baudrate to use for the bus.
read(amount)

Read data from the bus.

Parameters:amount (int) – Number of bytes to read.
Returns:Bytes read
Return type:bytes
write(data)

Write data on the bus.

Parameters:data (bytes) – Data to write.