nrf5/drivers: Adding example in comment on how to use the ili9341 driver with nrf51/pca10028 board.
This commit is contained in:
parent
0380d2e781
commit
5618be883b
|
@ -95,6 +95,18 @@ enum {
|
|||
};
|
||||
|
||||
/*
|
||||
|
||||
Example for nrf51822 / pca10028:
|
||||
|
||||
from machine import Pin, SPI
|
||||
from display import ILI9341
|
||||
cs = Pin("A17", mode=Pin.OUT, pull=Pin.PULL_UP)
|
||||
dc = Pin("A18", mode=Pin.OUT, pull=Pin.PULL_UP)
|
||||
spi = SPI(0, baudrate=8000000)
|
||||
d = ILI9341(240, 320, spi, cs, dc)
|
||||
d.text("Hello World!", 32, 32)
|
||||
d.show()
|
||||
|
||||
Example for nrf52832 / pca10040:
|
||||
|
||||
from machine import Pin, SPI
|
||||
|
|
Loading…
Reference in New Issue