Skip to content

2.0.0

Latest

Choose a tag to compare

@mikeysklar mikeysklar released this 23 Nov 15:33
249bc2b

Highlights

Chip-specific code now lives in src/arch, one folder per family, so new ports and speedups land without touching the core drivers.
Drawing is much faster on most boards, and fills, bitmaps, lines and text all got quicker.
Thanks to everyone below for their PRs.

Breaking changes

Sketches that #include <Adafruit_GFX.h> and <Fonts/X.h> build unchanged.
These cases need a change:

Change What breaks Fix
Sources moved to src/ (#538) Includes with a path into the library, like "../Adafruit_GFX_Library/Fonts/X.h" Use <Fonts/X.h>
Your own makefiles or build scripts that list Adafruit_GFX.cpp Add src/ to the path. The library's CMakeLists.txt and component.mk are already updated.
Scripts that write fonts into the library's Fonts/ folder Use src/Fonts/
Arduino IDE older than 1.5 Upgrade, it can't build from src/
Canvases can't be copied (#534) GFXcanvas16 c = GFXcanvas16(w, h);, passing a canvas by value, or assigning one canvas to another no longer compiles. The copy and the original freed the same buffer. Construct in place, GFXcanvas16 c(w, h);, or pass a pointer or reference
setFont() cursor shift scales with text size (#549) At text size 2 and up, custom font text printed after setFont() moves down 6 px per size step to the correct baseline. Sketches that offset it by hand will be off. Remove the manual offset
display() and clearDisplay() are virtual in Adafruit_GFX (#411) A subclass that declares either with a different return type, like bool display(), no longer compiles Return void

Faster drawing

New features

Fixes

fontconvert

Examples, docs and CI

Full Changelog: 1.13.0...2.0.0