Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

1.3inch 65K FullColorLCD 240x240dot [ST7789V]
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 352
Location: Japan

japan.gif
PostPosted: Tue Sep 24, 2024 5:48 am    Post subject: Reply with quote

I can't think of any use for a round LCD other than a wristwatch.
What is it used for?
Back to top
View user's profile Visit poster's website
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Tue Sep 24, 2024 3:08 pm    Post subject: Reply with quote

automotive gauges Smile))
Back to top
View user's profile
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Tue Sep 24, 2024 3:19 pm    Post subject: Reply with quote

will try this out Smile Found it on russian forum

but I believe it will be slow, no asm Sad
Back to top
View user's profile
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Wed Sep 25, 2024 12:33 pm    Post subject: Reply with quote

tried the GC9 lib today.... it works on first try on my AVR128DA32. 12MHZ SPI but slow, very slow Sad maybe anybody can help to transform it to ASM?

Cheers
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 352
Location: Japan

japan.gif
PostPosted: Thu Sep 26, 2024 1:30 am    Post subject: Reply with quote

Color LCDs require multiple commands and color data to be sent to draw a single dot.
Controlling this with SPI requires a considerable amount of processing power.

Even in the published program, the SPI processing calls an assembler routine in BASCOM, so even if you rewrite everything else in assembler, I think you'll only be able to improve the drawing speed by 20% at best.

Increasing the CPU clock can also provide some improvement, but 8-bit AVRs have their limits.
If you want drawing speeds on par with those of commercially available watches, I think it will be difficult to achieve unless you use a 32-bit CPU and LCD in parallel mode.
Back to top
View user's profile Visit poster's website
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Mon Sep 30, 2024 7:48 am    Post subject: Reply with quote

O-Family wrote:
Color LCDs require multiple commands and color data to be sent to draw a single dot.
Controlling this with SPI requires a considerable amount of processing power.

Even in the published program, the SPI processing calls an assembler routine in BASCOM, so even if you rewrite everything else in assembler, I think you'll only be able to improve the drawing speed by 20% at best.

Increasing the CPU clock can also provide some improvement, but 8-bit AVRs have their limits.
If you want drawing speeds on par with those of commercially available watches, I think it will be difficult to achieve unless you use a 32-bit CPU and LCD in parallel mode.


yes you might be right. Do you have SSD1306 SPI libary? Maybe I go back to black/white OLED Smile But i2c is a bit to slow for me Smile Maybe you can help here?

Cheers
Back to top
View user's profile
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Mon Sep 30, 2024 9:16 am    Post subject: Reply with quote

O-Family wrote:
Color LCDs require multiple commands and color data to be sent to draw a single dot.
Controlling this with SPI requires a considerable amount of processing power.

Even in the published program, the SPI processing calls an assembler routine in BASCOM, so even if you rewrite everything else in assembler, I think you'll only be able to improve the drawing speed by 20% at best.

Increasing the CPU clock can also provide some improvement, but 8-bit AVRs have their limits.
If you want drawing speeds on par with those of commercially available watches, I think it will be difficult to achieve unless you use a 32-bit CPU and LCD in parallel mode.


Can you integrate also xtiny support for ST7789 libary?

Cheers
Back to top
View user's profile
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Mon Sep 30, 2024 11:02 am    Post subject: Reply with quote

tried today the round ST7789 and it works.... But one question: What is different at color8x8.font ? That is the only font which is working Sad
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 352
Location: Japan

japan.gif
PostPosted: Mon Sep 30, 2024 1:09 pm    Post subject: Reply with quote

The SSD1306 SPI library should be in the LIB folder.
glcdSSD1306-SPI.lib

In the case of monochrome, data is written in 8-bit units, so I don't think there is a big difference in drawing speed between SPI and I2C.
Reading fonts and calculating graphics takes more time than the transfer speed.

What is the problem with the ST7789 font?

Monochrome fonts and color fonts cannot be reused because the data structure is different.

To convert monochrome fonts to color fonts, you can use the following [Color_Font_Converter.exe].
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13094&highlight=color+colour+font+converter
Back to top
View user's profile Visit poster's website
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Mon Sep 30, 2024 2:15 pm    Post subject: Reply with quote

O-Family wrote:
The SSD1306 SPI library should be in the LIB folder.
glcdSSD1306-SPI.lib

In the case of monochrome, data is written in 8-bit units, so I don't think there is a big difference in drawing speed between SPI and I2C.
Reading fonts and calculating graphics takes more time than the transfer speed.

What is the problem with the ST7789 font?

Monochrome fonts and color fonts cannot be reused because the data structure is different.

To convert monochrome fonts to color fonts, you can use the following [Color_Font_Converter.exe].
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13094&highlight=color+colour+font+converter


thank you very much for the st7789 help....

Fonts are working in colormode. But I try to make a 64x36pixel font. Also tried 64x32 or 64x40.... Display shows nothing than Sad

Can we speed up the ST7789 with hardware SPI?

Cheers
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 352
Location: Japan

japan.gif
PostPosted: Tue Oct 01, 2024 1:31 pm    Post subject: Reply with quote

I can display large fonts such as 24x16 and 40x32 dots without any problems.
If nothing is displayed, there may be something wrong with the way the font is created.

When the size becomes 64x36, the number of dots to be drawn increases dramatically, so I don't think that changing to hardware SPI will result in an instantaneous change in the display.
Back to top
View user's profile Visit poster's website
boeseturbo

Bascom Member



Joined: 23 Jul 2007
Posts: 66

blank.gif
PostPosted: Tue Oct 01, 2024 2:39 pm    Post subject: Reply with quote

have now 80x48 fontsize. I splitted it to 2x 40x48 and this is working. Smile)) Speed is also okay now Smile

Measured on spi about 1,8MHz (with multimeter)....
Back to top
View user's profile
rwlee

Bascom Member



Joined: 04 Aug 2008
Posts: 55
Location: Portland Oregon

usa.gif
PostPosted: Wed Jan 14, 2026 6:18 am    Post subject: 240x240dot ST7789V Reply with quote

O-Family wrote:
I think it will work with the 1.3inch 240x240dot ST7789V library on this thread.
glcd-ST7789V_1R3_240x240.lib [revision 003]
or
glcd-ST7789V2_V3_1R69_240x280.lib

If you have any problems, I think I can help.


Are you using the Bascom AVR Font tool to generate the Font?

My font ends up looking like this Which is a 12 x 16 ...





No matter what size I genarate the all turn out the same.
Back to top
View user's profile
O-Family

Bascom Expert



Joined: 23 May 2010
Posts: 352
Location: Japan

japan.gif
PostPosted: Wed Jan 14, 2026 8:35 am    Post subject: Reply with quote

The color LCD library created for BASCOM's graphic commands has only supported X-axis font sizes that are multiples of 8 bits since its early days.
This was likely due to concerns that supporting a variety of font sizes would slow down drawing due to the increased processing required.
Back to top
View user's profile Visit poster's website
rwlee

Bascom Member



Joined: 04 Aug 2008
Posts: 55
Location: Portland Oregon

usa.gif
PostPosted: Thu Jan 15, 2026 11:23 am    Post subject: Reply with quote

O-Family wrote:
The color LCD library created for BASCOM's graphic commands has only supported X-axis font sizes that are multiples of 8 bits since its early days.
This was likely due to concerns that supporting a variety of font sizes would slow down drawing due to the increased processing required.


Thanks for the info. Can you tell me how to get the fonts for this display?

Thanks, Wayne
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum