View previous topic :: View next topic |
Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Mon Mar 18, 2024 7:07 am |
|
|
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
|
|
Posted: Mon Mar 18, 2024 8:03 am |
|
|
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
|
|
Posted: Mon Mar 18, 2024 9:30 am |
|
|
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
|
|
Posted: Mon Mar 18, 2024 10:06 am |
|
|
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
|
|
Posted: Mon Mar 18, 2024 11:21 am |
|
|
Can you give an example regarding this ? |
|
|
|