Skip to content

Commit

Permalink
Update ./examples/initdisplay/wioterminal.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Jul 15, 2022
1 parent 3491690 commit e219b11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/initdisplay/wioterminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func InitDisplay() *ili9341.Device {
SCK: machine.LCD_SCK_PIN,
SDO: machine.LCD_SDO_PIN,
SDI: machine.LCD_SDI_PIN,
Frequency: 40000000,
Frequency: 60000000,
})

d := ili9341.NewSPI(
Expand All @@ -25,13 +25,13 @@ func InitDisplay() *ili9341.Device {
machine.LCD_SS_PIN,
machine.LCD_RESET,
)
d.Configure(ili9341.Config{})
d.Configure(ili9341.Config{
Rotation: ili9341.Rotation270,
})
d.FillScreen(color.RGBA{255, 255, 255, 255})

machine.LCD_BACKLIGHT.Configure(machine.PinConfig{machine.PinOutput})
machine.LCD_BACKLIGHT.High()

d.SetRotation(ili9341.Rotation270)

return d
}

0 comments on commit e219b11

Please sign in to comment.