megasquirt-dash-display icon indicating copy to clipboard operation
megasquirt-dash-display copied to clipboard

Not Displaying Any Graphics/Text

Open exothink opened this issue 4 years ago • 2 comments

Using PlatformIO to compile/load the code I only get a grey screen. I am using the newer E1 LCD with the breakout board. The Seed demo arduino runs the demo and displays correctly.

I've put a scope on the pins and they are doing as expected. I am not using the LED bar so that i2c code is commented out. I added a "DPRINT(screen_num);" statement to "void core()" and it correctly increments when I touch the screen. This indicates that SPI between the ESP32 and the LCD is working. I also dropped the SPI speed down to 5MHz, but still no luck.

Please help.

exothink avatar Nov 18 '20 20:11 exothink

Did you work out the problem? I replied to your CF support ticket.

MWP avatar Dec 07 '20 16:12 MWP

The issue was the pixel clock. It was hardcoded for 12MHz. My display needs 30MHz. You have it hard coded even though there is a define in 'project.h'. FYI there are also #ifdefined that should be #if in your 'endiness' functions.

I'm wondering if there would be any value in simply updating the needle and digital values instead of rewriting the entire gauge.

Thanks for following up.

exothink avatar Dec 07 '20 16:12 exothink