Need st7789 help. #4983
Replies: 4 comments 3 replies
-
I'm just guessing here, but comparing your code to mine, that is working fine with
LCD_RST.Configure(machine.PinConfig{Mode: machine.PinOutput})
LCD_DC.Configure(machine.PinConfig{Mode: machine.PinOutput})
SPI_CS.Configure(machine.PinConfig{Mode: machine.PinOutput})
LCD_BL.Configure(machine.PinConfig{Mode: machine.PinOutput})
Otherwise your code looks good and should go pass the configuration step if there are no mechanical issues. |
Beta Was this translation helpful? Give feedback.
-
Can you try FWIW, you can clone |
Beta Was this translation helpful? Give feedback.
-
Update and new question: I've found a couple of st7789 drivers written in C so my projects can move forward. In an effort to find out why I can't get the tineygo st7789 driver working I was going to use, as suggested here, gdb. So I tried this which didn't work. Main.go is the file above.
|
Beta Was this translation helpful? Give feedback.
-
If you can get a C driver to work with TinyGo, I guess it's more productive to port that driver, or diff the Go and C driver to see what they're doing differently. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Waveshare PicoLCD 1.14 which I'm trying to get working with an rpi pico or pico2. Both behave the same way. My code gets to the Config sections and blocks never to return.
`package main
import (
"image/color"
)
// Define your specific pin assignments here
const (
SPI_SCK = machine.GP10 // clock
SPI_SDO = machine.GP11 // data
SPI_CS = machine.GP9 // select
LCD_DC = machine.GP8 // data/command
LCD_RST = machine.GP12 // reset
LCD_BL = machine.GP13 // lcd backlight
)
var display st7789.Device
func main() {
}`
Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions