I2C versus SDI Diplays.

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

gdt
Posts: 71
Joined: Thu Aug 10, 2017 2:04 pm
Has thanked: 25 times
Been thanked: 36 times
Contact:

I2C versus SDI Diplays.

Postby gdt » Sun May 12, 2019 8:23 pm

Hello body,
in the past I've uded some I2C display (SH1106, SSD1306) with PIC18LF26K80 and no problem seen.
Now I'm trying to use the same I2C display but with PIC16F1455 or 16F1825 and in both cases, even the simple "ClearDisplay" flowchart is giving compiler error (FC7 v7.3.0.7):

ClearDisplay.png
ClearDisplay.png (6.55 KiB) Viewed 626 times


.......
Distance Sensor 16F1455 V1.0.c: 220: (1250) could not find space (128 bytes) for variable _FCV_006e1_gLCD_SH1106_I2C1__DRAM0
Distance Sensor 16F1455 V1.0.c: 220: (1262) object "_FCV_006e1_gLCD_SH1106_I2C1__DRAM0" lies outside available data space (warning)
(908) exit status = 1
(908) exit status = 1
.......

After some troubleshooting I see that for I2C diplsys it needs to use PIC with more than 1K RAM. Is it correct or I'm missing something here?
If so, is there a way to reduce the amount of RAM used with I2C displays?

Thanks
Giuseppe

gdt
Posts: 71
Joined: Thu Aug 10, 2017 2:04 pm
Has thanked: 25 times
Been thanked: 36 times
Contact:

Re: I2C versus SDI Diplays.

Postby gdt » Wed May 15, 2019 10:30 am

Hello,
i would just somebody to confirm if I2C displays take so much amount of RAM or it's just a specific component issue.

Thanks
Giuseppe

kersing
Valued Contributor
Valued Contributor
Posts: 1873
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 530 times
Been thanked: 1040 times
Contact:

Re: I2C versus SDI Diplays.

Postby kersing » Wed May 15, 2019 8:20 pm

I2C graphic display require ram to store screen contents. When displaying new information you are adding pixels to whatever is on screen. The controller needs to know what is already on screen to add the pixels. The amount of ram required depends on the number of pixels on the display.
These users thanked the author kersing for the post (total 2):
gdt (Wed May 15, 2019 9:05 pm) • medelec35 (Wed May 15, 2019 10:03 pm)
Rating: 10.53%
 
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

gdt
Posts: 71
Joined: Thu Aug 10, 2017 2:04 pm
Has thanked: 25 times
Been thanked: 36 times
Contact:

Re: I2C versus SDI Diplays.

Postby gdt » Wed May 15, 2019 9:09 pm

Hello Kersing,
many thanks for sharing useful info.
I wanted just to make sure I wasn't missing any obvious settings.

Regards
Giuseppe