File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
examples/ili9341/pyportal_boing Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,17 @@ import (
1010
1111var (
1212 csPin = machine .D12
13- dcPin = machine .D11
13+ dcPin = machine .D10
1414 display = ili9341 .NewSpi (
1515 machine .SPI0 ,
1616 dcPin ,
1717 csPin ,
18- machine .D8 ,
18+ machine .D8 , // if wired to 3.3, pick an unused pin
1919 )
2020
21+ // ILI9341's LED pin. set this to an unused pin (but not NoPin!) if
22+ // wired via resistor straight to 3.3V. the boing example tries to
23+ // set this pin and will panic if NoPin is used.
2124 backlight = machine .D9
2225)
2326
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ func main() {
5858 backlight .High ()
5959
6060 display .SetRotation (ili9341 .Rotation270 )
61+ time .Sleep (50 * time .Millisecond )
6162 DrawBackground ()
6263
6364 startTime = time .Now ().UnixNano ()
You can’t perform that action at this time.
0 commit comments