6

I got a RePaper 2.7' eInk display that unfortunately doesn't support Arduino Mega because of its limited SRAM capacity (8k bytes). I am porting the library to Arduino Due because of its sufficient RAM capacity (96 KB in two banks: 64KB and 32KB).

I am using the thread rePaper - 2.7" Graphic eInk Dev Board Headers and I've done all the modifications.

Has anyone successfully ported the library to Arduino Due? Also, does anyone have a library for Dynamic Printing for this display?

2
  • Can you please provide a link to the source code for Due library? (And also the data sheet for the display would be handy.)
    – cjs
    Apr 4, 2017 at 0:45
  • I've got a dynamic image loading project on the Uno (very limited RAM), you can check it out on github github.com/Paul-Ver/Arduino_PhotoFrame
    – Paul
    Apr 4, 2017 at 4:55

1 Answer 1

1

You're trying to port the library from the Due to the Mega? If the library is large a "port" just isn't going to happen because relatively minor modifications to the code are very unlikely to shrink the size significantly; you'll need a complete rewrite.

My suggestion is to start by studying the data sheet for the device and the code for the existing Due driver to get an idea of how it works. Then sit down and write some sketches for your Mega that make something happen on the display (perhaps just clearing it, turning on and off a few specific pixels, the like) to verify your understanding. Once you've done that, you can start to consider the design of your driver.

Because of the vastly different memory limitations it's likely that your driver will look and work very differently from the Due driver. For example, a 264 x 176 x 1 bit frame buffer would use almost 6K of RAM (most of the RAM in a Mega 2560 and far more than in an Uno), so you're not going to want to have one. I don't know if the Due driver has a frame buffer (I'm just using this as an example of a typical difference you might encounter), but if it does, and that's used for doing certain kinds of things, you'll need to do them in a different way or not do them at all.

This is not a simple project, but it's a great one and will teach you a lot about microcontroller programming!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.