nrf5/drivers: Adding example in comment on how to use the ili9341 driver with nrf51/pca10028 board.

This commit is contained in:
Glenn Ruben Bakke 2017-01-15 20:32:24 +01:00
parent 0380d2e781
commit 5618be883b
1 changed files with 12 additions and 0 deletions

View File

@ -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