duck531a98 / esp8266-weather-station-epaper

use esp8266 to show weather forecast on 2.9inch e-paper
GNU General Public License v3.0
175 stars 40 forks source link

ePaper Library #1

Open mattncsu opened 7 years ago

mattncsu commented 7 years ago

Hi! I got the sketch working pretty quickly on my ESP & Waveshare 2.9" board. Very cool! Did you write the library for the epd? It is substantially better than the one Waveshare provides on their website. If so, could you publish it as a standalone library, I've tried merging your EPD_drive.cpp/.h with the ones from the Waveshare demo without much luck since I'm still new to cpp.

Thanks!

duck531a98 commented 7 years ago

Waveshare library display strings with part refresh, stores font in header file. My library write all strings and pictures into buffer and refresh the display once, stores font in spiff. so they can't work together. even though you merge them, you can only use one method to refresh the display.

mattncsu commented 7 years ago

Thanks for the tip! I like the buffer approach much better than what was in the demo code. What do you think is the best way to display text rotated 90°? This epaper library for the ESP32 supports arbitrary rotation but I don't know how to adapt the code to work with Arduino

duck531a98 commented 7 years ago

Add some simple codes to transform the coordinates when operating the buffer to change the direction of text. if you can't handle that, you can wait for some days, i will do that.

mattncsu commented 7 years ago

I can give it a try but pretty new to cpp so it may be ugly!

On June 30, 2017 5:24:20 AM EDT, Hui Lu notifications@github.com wrote:

Add some simple codes to transform the coordinates when operating the buffer to change the direction of text. if you can't handle that, you can wait for some days, i will do that.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/duck531a98/esp8266-weather-station-epaper/issues/1#issuecomment-312220228