f365025c9c
Replace "master" with "controller" and "slave" with "peripheral" in comments, errors, and debug messages. Add CONTROLLER and PERIPHERAL constants to pyb.SPI and pyb.I2C classes; retain MASTER and SLAVE constants for backward compatiblity.
11 lines
186 B
Plaintext
11 lines
186 B
Plaintext
ValueError -1
|
|
ValueError 0
|
|
SPI 1
|
|
SPI 2
|
|
SPI(1)
|
|
SPI(1, SPI.CONTROLLER, baudrate= , polarity=1, phase=0, bits=8)
|
|
SPI(1, SPI.PERIPHERAL, polarity=1, phase=1, bits=8)
|
|
OSError
|
|
b'\xff'
|
|
b'\xff'
|