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):
.......
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
I2C versus SDI Diplays.
Moderator: Benj
-
- Posts: 71
- Joined: Thu Aug 10, 2017 2:04 pm
- Has thanked: 25 times
- Been thanked: 36 times
- Contact:
Re: I2C versus SDI Diplays.
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
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
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: I2C versus SDI Diplays.
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.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 71
- Joined: Thu Aug 10, 2017 2:04 pm
- Has thanked: 25 times
- Been thanked: 36 times
- Contact:
Re: I2C versus SDI Diplays.
Hello Kersing,
many thanks for sharing useful info.
I wanted just to make sure I wasn't missing any obvious settings.
Regards
Giuseppe
many thanks for sharing useful info.
I wanted just to make sure I wasn't missing any obvious settings.
Regards
Giuseppe