Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:spi_dot_matrix [2017/01/18 17:12] charles.park [Simple Dot-matrix LED test] |
en:spi_dot_matrix [2017/01/18 17:13] charles.park [Example of Scrolling Text] |
||
---|---|---|---|
Line 353: | Line 353: | ||
{ | { | ||
struct spi_ioc_transfer tr; | struct spi_ioc_transfer tr; | ||
+ | |||
+ | memset((void *)&tr, 0x00, sizeof(tr)); | ||
tr.tx_buf = (unsigned long)buf; | tr.tx_buf = (unsigned long)buf; |