[riot-notifications] [RIOT-OS/RIOT] E-paper driver samr21 using spi (#11756)

Dylan Laduranty notifications at github.com
Fri Jun 28 21:56:55 CEST 2019


Hi @talalong 
>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:
https://github.com/RIOT-OS/RIOT/issues/11756#issuecomment-506858626
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190628/ca0c78f8/attachment.html>


More information about the notifications mailing list