diff options
| author | Hierophect <hierophect@gmail.com> | 2019-12-05 11:38:20 -0500 |
|---|---|---|
| committer | Hierophect <hierophect@gmail.com> | 2019-12-05 11:38:20 -0500 |
| commit | f3f2c7f5dea80b827242988f031baf249b9df302 (patch) | |
| tree | 23a6d2ad2ef4852c1d1499086e14f54c82a6de6b | |
| parent | 3de1b9edbeb346341372e0efdfe4eafb9174aa65 (diff) | |
change default phase for SPI
| -rw-r--r-- | ports/stm32f4/common-hal/busio/SPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32f4/common-hal/busio/SPI.c b/ports/stm32f4/common-hal/busio/SPI.c index 1142657b7..32089887f 100644 --- a/ports/stm32f4/common-hal/busio/SPI.c +++ b/ports/stm32f4/common-hal/busio/SPI.c @@ -165,7 +165,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self, self->baudrate = (get_busclock(SPIx)/16); self->prescaler = 16; self->polarity = 0; - self->phase = 1; + self->phase = 0; self->bits = 8; claim_pin(sck); |
