|
Treehopper Python API
|
SPI device. More...
Public Member Functions | |
| def | __init__ (spi_module, chip_select, chip_select_mode, speed_mhz, spi_mode) |
| def | send_receive (data_to_send, burst) |
Public Attributes | |
| chip_select_mode | |
| chip_select | |
| frequency | |
| mode | |
SPI device.
This class provides a simple wrapper around Spi.send_receive() that preserves the chip-select, mode, and frequency configurations.
| def __init__ | ( | spi_module, | |
| chip_select, | |||
| chip_select_mode, | |||
| speed_mhz, | |||
| spi_mode | |||
| ) |
| def send_receive | ( | data_to_send, | |
| burst | |||
| ) |
| chip_select |
| chip_select_mode |
| frequency |
| mode |