Skip to content

Commit

Permalink
Remove disabling of SPI in show() (#242)
Browse files Browse the repository at this point in the history
- removed disabling of SPI in show()
- Note, we need SPI to stay open for any repeat calls to show().
  • Loading branch information
lewispg228 authored Jul 15, 2024
1 parent 666c2a9 commit 0b18398
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Arduino_package/hardware/libraries/WS2812B/src/WS2812B.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ void WS2812B::show(void) {
}
//Add a dummy bytes to ensure that the last bit of the data is sent out
spi_slave_write((spi_t *)pSpiMaster, 0);
//Ensure that Tx FIFO is empty before disable SPI
while (!(HAL_READ32(spi_addr,0x28) & 0x04));
spi_free((spi_t *)pSpiMaster);
}

void WS2812B::clear(void) {
Expand Down

0 comments on commit 0b18398

Please sign in to comment.