SPI version of the ST 7920 GLCD

Post and discuss new components that you have created.
estevaon
Posts: 13
http://meble-kuchenne.info.pl
Joined: Tue Aug 29, 2023 7:42 pm
Has thanked: 4 times
Been thanked: 4 times

Flowcode v10 Re: SPI version of the ST 7920 GLCD

Post by estevaon »

Hi BenR, I made the tests but unfortunately it isn't working.
Attachments
ST7920_2.jpeg
ST7920_2.jpeg (48.4 KiB) Viewed 6701 times

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: SPI version of the ST 7920 GLCD

Post by BenR »

Hello,

Ok it looks like the MISO pin isn't working for whatever reason. I'll add a buffered mode to the component so we don't need to rely on the readback for the display to function. The buffer will consume a bit of RAM - 1KB for a 128 x 64 pixel display.

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: SPI version of the ST 7920 GLCD

Post by BenR »

Right I've pushed a new version to the library updates with a new Local Buffer property, just make sure this is set to yes and fingers crossed no more corruption on your display. The X,Y coordinate system is interesting (a mess) on these displays so fingers crossed I've payed it proper attention and got it right.

estevaon
Posts: 13
Joined: Tue Aug 29, 2023 7:42 pm
Has thanked: 4 times
Been thanked: 4 times

Flowcode v10 Re: SPI version of the ST 7920 GLCD

Post by estevaon »

Hi Benr! Thank you for your effort, it didn't work by a thread. The option local buffer made the diference but errors persist.
Attachments
ST_7920_3.jpeg
ST_7920_3.jpeg (47.36 KiB) Viewed 6660 times

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: SPI version of the ST 7920 GLCD

Post by BenR »

Hello,

Aha many thanks. I may have spotted my mistake, you can only directly address every even data byte and I had addressed the odd byte the wrong way. Hopefully it will be better now.

estevaon
Posts: 13
Joined: Tue Aug 29, 2023 7:42 pm
Has thanked: 4 times
Been thanked: 4 times

Re: SPI version of the ST 7920 GLCD

Post by estevaon »

Hi BenR,

You made it! It will be very usefull in my projets, I hope it help others.
Thanks!!!
Attachments
ST_7920_4.jpeg
ST_7920_4.jpeg (49.65 KiB) Viewed 6633 times

Post Reply