Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not enough space on Mega2560 #55

Open
shirish47 opened this issue Jan 31, 2017 · 3 comments
Open

not enough space on Mega2560 #55

shirish47 opened this issue Jan 31, 2017 · 3 comments

Comments

@shirish47
Copy link

shirish47 commented Jan 31, 2017

I am using pervasive display 2.7 inch thermo_270.ino for EPD_231_G2 I get following error is:

`Sketch uses 15382 bytes (6%) of program storage space. Maximum is 253952 bytes.

Global variables use 12138 bytes (148%) of dynamic memory, leaving -3946 bytes for local variables. Maximum is 8192 bytes.
Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
Error compiling for board Arduino/Genuino Mega or Mega 2560.`

how do I resolve this?

@shirish47
Copy link
Author

I have commented all lines in program and everything it seems that EPD_GFX G_EPD(EPD, S5813A) is taking this much space itself.

I really want to use EPD_GFX library for text.

@shirish47
Copy link
Author

ok I found out those buffers are too big in size for MEGA.. is there any way to use EPD with text on mega? or BLE nrf51822 on arduino platform?

@hxw
Copy link
Collaborator

hxw commented Feb 3, 2017

It would take significant code changes, and the addition of an external SPI RAM for the graphics buffer to use this in graphics mode.

The alternative would be to have a character based frame buffer + a fixed width bitmap font and do the lookup as the image is being transferred, this would not use the graphics library but would directly render the bitmap to the panel. The disadvantage would be that only a single size of font would be possible, it would basically be an emulation of an old style tty display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants