 It's 10 p.m. Do you know where your engineers are? Hi Hey, what is this? All right, I've got eyes for you. Where my eyes are feeling all boggly From working on TFT display driving so an update, you know, we got these cool funky You know square and circular and bar shaped displays And I'm trying to get them all working with the ESP 32 s3. So that's the module You can see right there. That's the maroon module with eight megabytes of Octo PS RAM and 60 megabytes of flash so lots of memory Which means that they can frame buffer these large displays. This is a 480 by 480 RGB display And this is a 720 by 720 It looks dimmer because they're the backlight driver like a you know, obviously I took this dev board that was driving a certain display and I'm kind of plugging in different ones and so that the backlight driver isn't Tuned to give it as much current as it needs but my final design, of course, we'll do that and this is a you know large 4-inch display and this is a 2-inch round display This has a bezel because it's a capacitive touch cover on it And I did a capacitive touch demo earlier this week which people could check out on the socials And so you asked me to put some eyeballs on these displays. Yeah, and I did so what's interesting about these in comparison to You know these Like tiny displays is this is like an SPI display. Actually, I don't think this is gonna boot. Oh, let me show So so I'm just showing the boot loader So this is a small 240 by 160 display and for displays that are this small you can use SPI So we need four pins and they also have an internal frame buffer and then for displays like this, this is a 480 by 320. This is a 3.5 inch display and you can use 8 bit GPIOs you see like D0 through D7 and right read or you can use SPI This is as big as you can get with just SPI 480 by 320 And even then it's like kind of slow because you have to drive the SPI like 64 megahertz in order to get usable refresh rates You know, you want we could refresh you don't want to see like the flickering and so for really large displays 480 by 480 or like this mega 720 by 720 you have a parallel 24-bit or 18-bit display so you can see even here All the pins that go out for red green blue six bits each and then, you know, white Sorry B-Sync, H-Sync, Bit Clock all that good stuff, but in addition to Let me see I have one of Big pilot displays So like these displays these rectangular ones. These are also 40-pin displays That use 24-bit RGB, but these do not have a separate SPI configuration set up These are you just white RGB dated them and they display 800 by 480 And so these are very Convenient easy to use a very very popular these 800 by 480 displays to use these square or round or bar Displays you need to set them up not only do you have to write RGB data But you also have to set them up with SPI dated tell them How big is the display and like what is the format and so what happens is that for example this 2.1 inch? Sorry this this 4 inch round display you contact the factory and you're like hey Give me the data sheet and give me the initialization code and then you'll get Something that looks like this and it just has you know, they're like hey, here's your You just know that this is the V-sync back porch front porch eight sync h-sync pulse width h-sync front porch back porch And then the resolution 720 by 720 and then you've got these register rights and these register rights again have to go over SPI You would write to register ff 3 0 ff 5 2 and then this goes on for quite a bit And you're like wow when do we great if there was a documentation about what all these registers do They kind of have them in the data sheet like you'll definitely see these at the end the 36 This register is that the memory address control and 11 is to sleep out and then 29 is address on this is standard but every other one of these commands usually they're like gamma setting and Sizing and offsets and all that they can get pretty long. This one isn't too bad. So I'm gonna get quite Detailed and so then what you do is that in like, you know, I forked this library this ESP 32 Display panel library. That's meant for the eval board and you can look at my commits where I'm like Oh wait, sorry. This is their commits this branch my commits Hold on. Yeah. Okay, so four inch round So when I added the four inch round, you know, you can see I changed the resolution I changed the chipset, but then I have to define. Oh, and then I put all those Pulse widths you got and I updated the frequency to be a little faster and then you create the Register writing table over here. So this is the vendor specific in it and you can see oh, hey Those are those numbers from that text file You have to very carefully copy paste them and format them into the right order and you have to get it Perfectly right or it looks kind of funky doesn't it doesn't look good unless you get it exactly right But then once that's done, you can in it with this new code and then For example, let's see. This is the draw color bar, but this is the draw eyeball code. Let me load it up Okay, so draw eyeball what this does is I've got Bitmap data Whoa, he's got confused so many so much data It has all the bitmap data for the RGB eyeball that I converted with we have a media converter script I'll take a bitmap and give you 16-bit RGB 565 data you paste it in here and then at the bottom you Draw the eyeball or a bitmap so here I've got the 480 by 480 and 720 by 720 and boom Eyeballs pop out. So this is a good test, you know making sure that the color looks right The display is a nice and stable. I'll update the backlight that's done separately and then I did get the touch screen working so So far these two displays are working nicely so the next one I'm gonna try to do I try to look at the bar displays. I might do the square ones next. I've got a Few different square displays including Whoa This smaller three and a half inch and then these are the four inch displays that came with the eval board and Then yeah, maybe we'll do this bar display after that's a nice bar display with cap touch So it's happening and you can see my commits on get out If you want to check out the init code for these two displays so far All right, and now why don't you go ahead and wear them? Okay? Here we go Hello, I only have eyes for you Okay