Skip to content

Commit 7752fbf

Browse files
committed
add init delay before continuing with screen drawing
1 parent e87e48e commit 7752fbf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/ili9341/pyportal_boing/feather-stm32f405.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ import (
1010

1111
var (
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

examples/ili9341/pyportal_boing/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)