This website works better with JavaScript.
首頁
探索
說明
登入
Sol-Solis
/
blinky-esp
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Avoid spurios SPI error with 0-length transactions
S3
jrhoffa
3 年之前
父節點
64a49904bb
當前提交
1ba4562d8a
共有
1 個文件被更改
,包括
3 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
main/spi_leds.cpp
+ 3
- 0
main/spi_leds.cpp
查看文件
@@ -107,6 +107,9 @@ static uint8_t* encode_byte(uint8_t *out, uint8_t in) {
}
void SPI_LEDs::show() {
// We generate a spurious SPI error with a 0-length transaction.
if (length <= 0) return;
static int index = 0;
int ret;
const Color *pixel = pixels;
Write
Preview
Loading…
取消
儲存