[riot-notifications] [RIOT-OS/RIOT] E-paper driver samr21 using spi (#11756)
notifications at github.com
Fri Jun 28 21:56:55 CEST 2019
>From what I see, there is some mistakes with your code.
First `spi_init()` should not be call by your application. This is done automatically by RIOT in `drivers/periph_common/init.c`
Instead, you should initialize your CS pin with `spi_init_cs()`
In addition, I took a really quick look at your datasheet, your reset is active low so `gpio_write(reset,0);`
will keep your device into reset mode.
If I understand correctly, you're sending data not command to your screen so you should also change ` gpio_write(dc,0);`
Last but not least, you should also initialize your reset and dc pins with `gpio_init()`
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications