Skip to content

Commit 10ab8eb

Browse files
Increase reset time from 50 to 300μs
1 parent f57ad02 commit 10ab8eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Changed
10+
- Increased reset time from ~50μs to ~300μs, to deal with more/newer variants
11+
912
## [0.4.0] - 2020-12-02
1013
### Added
1114
- SK812w support for the `prerendered` variant

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ where
106106
}
107107

108108
fn flush(&mut self) -> Result<(), E> {
109-
for _ in 0..20 {
109+
// Should be > 300μs, so for an SPI Freq. of 3.8MHz, we have to send at least 1140 low bits or 140 low bytes
110+
for _ in 0..140 {
110111
block!(self.spi.send(0))?;
111112
block!(self.spi.read()).ok();
112113
}

0 commit comments

Comments
 (0)