On most ports, printing an instance of machine.SPI gives something like:
>>> machine.SPI(1)
SPI(1, baudrate=328125, polarity=0, phase=0, bits=8)
This commit makes the nrf port do the same.
The reason for this change is:
- make nrf consistent with other ports
- allow the `tests/extmod/machine_spi_rate.py` to run on the nrf port (this
tests parses the output of str(spi) to get the actual baudrate)
Signed-off-by: Damien George <damien@micropython.org>
|
||
|---|---|---|
| .. | ||
| ble | ||
| board | ||
| machine | ||
| music | ||
| nrf | ||
| os | ||
| scripts | ||
| ubluepy | ||
| manifest.py | ||