olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
261 stars 76 forks source link

Port to ESP8266 (Xtensa) #61

Closed spapadim closed 7 years ago

spapadim commented 8 years ago

Working on porting this, currently I have it compiling fine, see: https://github.com/spapadim/ucglib (Note: If you want to try this code, Arduino for ESP does not enable -Wl,--gc-sections flag, but just modifying platform.txt to add the necessary compile and link flags seems to have done the trick -- I'll file a separate issue there)

Once I have it tested on an actual device (on it's way from China :), I can create an PR, if you're interested. If you are, there are a few questions I have about your preferred coding style (and some housecleaning I'd like to do to my changes).

spapadim commented 8 years ago

Update: tested working on ILI9341 (short demo: https://youtu.be/lZhOVc7NHEI -- ~15fps across the board).

Changes commited to my fork.

Also, these short diffs need to be applied to the installed Arduno ESP package: https://gist.github.com/spapadim/a4bc258df47f00831006

beegee-tokyo commented 8 years ago

@spapadim I want to use this lib on my ESP8266. Any progress since your last comment? I checked your github repository, but I need some help how to add it to the Arduino IDE libraries.

olikraus commented 7 years ago

Info via PM on Arduino Forum: habe es hinbekommen, dass die ucglib am ESP8266 läuft. Bisher keine Auffälligkeiten, hab aber nur drawstring und box sowie frame und setcolor, setfont und setfontmode verwendet.

Dafür musste ich eigentlich nur in der Ucglib.cpp in der Zeile 774 folgendes ändern:

von:

if defined(PIC32MX) || defined(arm__)

auf:

if defined(PIC32MX) || defined(arm__) || defined(ESP8266)

equake commented 7 years ago

hi @olikraus i've submitted an pull request to the another repo. it's working for me! https://github.com/olikraus/Ucglib_Arduino/pull/3

olikraus commented 7 years ago

done