Skip to content

Commit 0722bfc

Browse files
Update documentation slightly
1 parent 4543138 commit 0722bfc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/hosted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This dynamically allocates an output buffer and writes out the data in a single call.
44
//! Much better suited for linux or similar environments, but may not always work
55
//!
6-
//! Intendded for use with rppal or linux-embedded-hal
6+
//! Intended for use with rppal or linux-embedded-hal
77
88
use embedded_hal as hal;
99

src/prerendered.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ where
4949
///
5050
/// You may need to look at the datasheet and your own hal to verify this.
5151
///
52-
/// You need to provide a buffer `data`, whoose length is at least 12 * the
52+
/// You need to provide a buffer `data`, whose length is at least 12 * the
5353
/// length of the led strip + 20 byes (or 40, if using the `mosi_idle_high` feature)
5454
///
5555
/// Please ensure that the mcu is pretty fast, otherwise weird timing
@@ -74,8 +74,9 @@ where
7474
///
7575
/// You may need to look at the datasheet and your own hal to verify this.
7676
///
77-
/// You need to provide a buffer `data`, whoose length is at least 12 * the
78-
/// length of the led strip
77+
/// You need to provide a buffer `data`, whose length is at least 16 * the
78+
/// length of the led strip + 20 bytes (or 40, if using the `mosi_idle_high` feature)
79+
/// because each SK6812W pixel needs 4 bytes.
7980
///
8081
/// Please ensure that the mcu is pretty fast, otherwise weird timing
8182
/// issues will occur

0 commit comments

Comments
 (0)