Nissan 370Z Forum  

LCD Gauge Update #3: 35 Data Items on 16 Pages!

Originally Posted by MotorvateDIY I think you meant SPI, not I2C... I2C is too slow for a full colour display. A 320 x 240 display has 76,800 pixels, and each

Go Back   Nissan 370Z Forum > Nissan 370Z Tech Area > Engine & Drivetrain


Like Tree30Likes

 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-16-2022, 09:35 AM   #10 (permalink)
Base Member
 
Join Date: Dec 2021
Location: Florida
Posts: 54
Drives: 2013 370z Base MT
Rep Power: 5823
SLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond reputeSLOPOS has a reputation beyond repute
Default

Quote:
Originally Posted by MotorvateDIY View Post
I think you meant SPI, not I2C... I2C is too slow for a full colour display.

A 320 x 240 display has 76,800 pixels, and each pixel has 16 bits (RGB565) of colour information, for a total of 1,226,800 pixels or 153,600 bytes per LCD screen/page.

The LCD controller I use supports a max SPI clock of 40 Mhz resulting in taking 0.180 seconds to draw each page. By only "drawing" the parts of the screen that change, the display updates around 30 times per second.

To make the best use of all clock cycles, I use a RTOS (real time operating system) which allows pre-emptive multitasking. This allows me to run multiple tasks at the same time.

The tasks I have set up are: reading the CAN bus, receiving Bluetooth data, and drawing the display. They all run independently and at full speed. Nice!

Also, since the ESP32 has 2 cores, core 0 is dedicated to handling all Bluetooth communications, and core 1 handles reading the CAN bus and rendering the display.

Anyways, I'm glad to share the details...
Oh, derp! I was thinking esp8266 which didn't have spi capabilities *facepalm* - kinda the little brother of the esp32. I do think I have some 32s laying around from a weather station project I was working on but never finished. Can't wait to see the full published doc - if you need any 370 guinea pigs, feel free to drop be a line.
JARblue likes this.
SLOPOS is offline   Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UPDATE: Popular Items Back In Stock, Some Items Still OOS Nick@Adams Adam's Polishes 0 10-29-2013 08:55 AM
We have reached 370 pages in General Discussions! Look Up! /\/\/\ NissanUSA Nissan 370Z General Discussions 8 01-27-2012 03:13 PM
Any Takers????...Import Tuner Power Pages...??? TSE North East Region 9 05-09-2010 07:49 PM
What happened to the tire pressure gauge and speedo in the middle gauge cluster? rbratton Nissan 370Z General Discussions 33 01-24-2009 10:28 PM


All times are GMT -5. The time now is 01:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 PL2