Skip to content

Commit 5f5f8a9

Browse files
committed
rename initializer to NewSPI per Go convention
see: tinygo-org#196 (review)
1 parent 7752fbf commit 5f5f8a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/ili9341/pyportal_boing/feather-stm32f405.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ import (
1111
var (
1212
csPin = machine.D12
1313
dcPin = machine.D10
14-
display = ili9341.NewSpi(
14+
display = ili9341.NewSPI(
1515
machine.SPI0,
1616
dcPin,
1717
csPin,
18-
machine.D8, // if wired to 3.3, pick an unused pin
18+
machine.D8, // if wired to 3.3V, pick an unused pin
1919
)
2020

2121
// ILI9341's LED pin. set this to an unused pin (but not NoPin!) if
2222
// wired via resistor straight to 3.3V. the boing example tries to
2323
// set this pin and will panic if NoPin is used.
24-
backlight = machine.D9
24+
backlight = machine.D13
2525
)
2626

2727
func init() {

ili9341/spi_stm32f4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type spiDriver struct {
1111
bus machine.SPI
1212
}
1313

14-
func NewSpi(bus machine.SPI, dc, cs, rst machine.Pin) *Device {
14+
func NewSPI(bus machine.SPI, dc, cs, rst machine.Pin) *Device {
1515
return &Device{
1616
dc: dc,
1717
cs: cs,

0 commit comments

Comments
 (0)