Skip to content

Commit f3f2c7f

Browse files
committed
change default phase for SPI
1 parent 3de1b9e commit f3f2c7f

File tree

1 file changed

+1
-1
lines changed
  • ports/stm32f4/common-hal/busio

1 file changed

+1
-1
lines changed

ports/stm32f4/common-hal/busio/SPI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
165165
self->baudrate = (get_busclock(SPIx)/16);
166166
self->prescaler = 16;
167167
self->polarity = 0;
168-
self->phase = 1;
168+
self->phase = 0;
169169
self->bits = 8;
170170

171171
claim_pin(sck);

0 commit comments

Comments
 (0)