CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

A question about oled ssd1306 bitmap
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Mar 18, 2024 7:07 am     Reply with quote

change 'fast=1000000' to 'fast=400000'. Pretty sure that's the option....?

you're trying to 'overclock' the I2C bus !

overclock, a term used in PCs where you go into the BIOS and change the speed of the motherboard . while you could increase the speed a bit,depending on the mother board parts, go too fast and you'd 'brick' the motherboard.

As Mr. T said ,that GCLD is a 400KHz device NOT a 1 MHz device.
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Mar 18, 2024 8:03 am     Reply with quote

You should not use the pin numbers in your setup.
Look at the sticky at the top of the forum for how to do this.
However it should be selecting the hardware.

It may actually be working slower because you are overclocking this
Try with 400K and see what happens.

Understand though just how slow setting single pixels is. It is the most
inefficient way to use these screens, and really should not be used unless
all other methods cannot be used. The better way would be to assemble
the shape you want to draw 'in RAM', and write the whole shape to the
screen. This would be about 20 times faster.

Otherwise could you switch to using SPI?. It's only a jumper change on the
displays (you normally have to either add or remove a resistor), and
straight away a huge gain in speed. It saves 50% straight away on
doing reads, and is the faster interface.
bulut_01



Joined: 24 Feb 2024
Posts: 62

View user's profile Send private message

PostPosted: Mon Mar 18, 2024 9:30 am     Reply with quote

Ttelmah wrote:
You should not use the pin numbers in your setup.
Look at the sticky at the top of the forum for how to do this.
However it should be selecting the hardware.

It may actually be working slower because you are overclocking this
Try with 400K and see what happens.

Understand though just how slow setting single pixels is. It is the most
inefficient way to use these screens, and really should not be used unless
all other methods cannot be used. The better way would be to assemble
the shape you want to draw 'in RAM', and write the whole shape to the
screen. This would be about 20 times faster.

Otherwise could you switch to using SPI?. It's only a jumper change on the
displays (you normally have to either add or remove a resistor), and
straight away a huge gain in speed. It saves 50% straight away on
doing reads, and is the faster interface.


Can you give an example of what you say about RAM with code?
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Mar 18, 2024 10:06 am     Reply with quote

I've already referred you to my SSD1306 driver in the code library. This does
exactly this with a small buffer.
bulut_01



Joined: 24 Feb 2024
Posts: 62

View user's profile Send private message

PostPosted: Mon Mar 18, 2024 11:21 am     Reply with quote

Can you give an example regarding this ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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


Powered by phpBB © 2001, 2005 phpBB Group