Commit Graph
462 Commits
Author SHA1 Message Date
Mikey Sklar 9b7f8ef181 Merge pull request #519 from mikeysklar/esp8266-optimistic-yield
Make small drawing calls fast again on ESP8266
2026-10-16 16:26:15 -07:00
Mikey SklarandClaude Opus 5.5 9569fc6f3e ESP8266: use optimistic_yield in writeColor instead of delay(1)
delay(1) ran on every writeColor call, making small fills about 3x
slower (#479). delay(0) no longer yields on core 3.x and trips the
soft WDT, and yield() panics when drawing from SYS context.
optimistic_yield(10000) yields only after 10 ms and is a no-op where
yielding is not allowed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-16 07:08:59 -07:00
Mikey Sklar e6ffe30f00 Merge pull request #396 from leres/update
add missing newlines to a couple of error messages (in fontconvert)
2026-10-15 18:08:06 -07:00
Mikey Sklar af4ffdea12 Merge pull request #463 from adenvt/master
fix(fontconvert): use `pkg-config`
2026-10-15 18:07:57 -07:00
Mikey Sklar df5a4711c2 Merge pull request #457 from johnboiles/master
For ESP-IDF builds use arduino-esp32 instead of arduino dependency
2026-10-15 18:07:45 -07:00
Mikey Sklar a06b05f394 Merge pull request #507 from dforsi/patch-1
Update Adafruit_GFX.h
2026-10-15 18:07:36 -07:00
Mikey Sklar eca95ee801 Merge pull request #409 from BillyDonahue/patch-1
Fix `setAddrWindow` documentation copy paste error
2026-10-15 18:07:33 -07:00
Mikey Sklar 4a57ac5e9e Merge pull request #454 from gilesp1729/master
Make Adafruit_GFX_Button::drawButton work with custom fonts by using …
2026-10-15 14:14:55 -07:00
Mikey Sklar e21f500c28 Merge pull request #493 from bobmoss/fix-fillellipse-function
Modified fillEllipse to use writeFastHLine instead of drawFastHLine
2026-10-15 14:14:45 -07:00
Mikey Sklar 15ca7a42b0 Merge pull request #513 from 94xhn/fix/button-uninitialized-state
fix(GFX_Button): initialize currstate/laststate
2026-10-15 14:14:36 -07:00
Mikey Sklar 7e0dc0131f Merge pull request #514 from 94xhn/fix/gfxfont-word-range
Fix GFXfont range reads on big-endian targets
2026-10-15 14:14:13 -07:00
Mikey SklarandClaude Opus 5.5 a0f92f1f27 Measure button label at (0,0) and keep charBounds non-virtual
Measuring at the button position predicts a line wrap that print()
never does, so a wide label on a button near the right edge moved
off its button. Measure at (0,0) and offset by the returned x/y.

The charBounds virtual change is unrelated to this fix, so it is
dropped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-15 08:11:04 -07:00
94xhn 43e293c138 Preserve wide custom-font ranges on big-endian targets
GFXfont stores first and last as uint16_t, but the custom-font paths read them as bytes. Use word-width reads while retaining the existing 8-bit character API, so the stored range is interpreted correctly without changing the font format or adding UTF-8 behavior.

Constraint: Keep the public 8-bit character API and limit the patch to issue #490\nRejected: UTF-8/API refactor | broader scope is outside the reported portability bug\nConfidence: high\nScope-risk: narrow\nReversibility: clean\nDirective: Keep GFXfont first/last accesses word-width when reading the stored range\nTested: MinGW GCC 8 -Wall -Wextra -Werror with an endian-aware host fixture; WSL GCC AddressSanitizer and UBSan; baseline fixture fails with 0x0 bounds while the fix passes with 5x7\nNot-tested: Physical Arduino board hardware
2026-07-18 14:13:48 +08:00
94xhn b522b1edba fix(GFX_Button): initialize currstate/laststate
Adafruit_GFX_Button's constructor only initializes _gfx, leaving
currstate/laststate as indeterminate memory. justPressed()/
justReleased() read these before the first press() call, so they can
report a spurious press/release transition on a button that was never
actually touched.

Fixes #401

Signed-off-by: 94xhn <87560781+94xhn@users.noreply.github.com>
2026-07-11 16:35:19 +08:00
Tyeth Gundry ac6d7c3869 Bump version to 1.12.6
Update version to 1.12.6
1.12.6
2026-04-09 22:30:17 +01:00
Adabot 90256fa0a0 Bump version to 1.12.6 2026-04-09 19:40:58 +01:00
BillMerryman c5f9fb14f1 Add drawRotatedRect and fillRotatedRect methods (#508)
* Add drawRotatedRect and fillRotatedRect methods

* Corrected docs
2026-04-01 10:21:37 -04:00
dforsi 2d6d9c3fa2 Update Adafruit_GFX.h
Fix comments of struct items

Background and text were inverted.
2026-03-24 21:56:03 +01:00
tyeth-ai-assistedandAdabot 7ab6d09178 Bump version to 1.12.5
Co-authored-by: Adabot <adabot@adafruit.com>
1.12.5
2026-02-26 01:46:41 +00:00
bfa5417212 Run clang-format (#505)
* Run clang-format

Co-authored-by: ladyada <limor@ladyada.net>

* Fix destructor spacing for CI clang-format

Co-authored-by: ladyada <limor@ladyada.net>

* Revert .ino formatting — keep examples as-is

Co-authored-by: ladyada <limor@ladyada.net>

---------

Co-authored-by: clawpi <clawpi@adafruit.com>
Co-authored-by: ladyada <limor@ladyada.net>
2026-02-17 15:26:49 -05:00
Bob Moss d68f27b7bf Modified fillEllipse to use writeFastHLine instead of drawFastHLine 2025-11-28 11:10:51 +00:00
Tyeth Gundry e4df4cc64f Update version to 1.12.4 in library.properties 1.12.4 2025-11-11 15:52:59 +00:00
BillMerryman 20abf158a1 Correct circle method docs (#487) 2025-11-07 14:26:52 -05:00
Tyeth Gundry a969a704bb Bump version to 1.12.3 in library.properties 1.12.3 2025-09-24 19:00:09 +01:00
DS-Aditya-928 4c89798ccd Optimise fillEllipse function. ~36% faster (#478)
* Optimised fillEllipse function

* Cleaned up code
2025-09-17 12:08:09 -04:00
Tyeth Gundry 9e06b6d222 Update version to 1.12.2 in library.properties 1.12.2 2025-09-16 15:07:43 +01:00
DS-Aditya-928 32da3d2094 Added drawEllipse and fillEllipse functions (#477)
* Added drawEllipse and fillEllipse functions

* Formatting fixes
2025-09-14 08:28:20 -04:00
Tyeth Gundry 21648a8299 Update library.properties - bump version to 1.12.1 1.12.1 2025-04-22 17:21:01 +01:00
Carter Nelson c450adbc04 Merge pull request #470 from caternuson/iss469_rp2040_spi
Fix RP2040 SPI peripheral mapping
2025-04-09 11:35:18 -07:00
caternuson 9709959658 fix RP2040 SPI peripheral mapping 2025-04-09 11:17:59 -07:00
Liz 87e15509a9 Update library.properties 1.12.0 2025-02-24 12:54:02 -05:00
Liz 2c4630cc13 Update library.properties 2025-02-24 12:40:13 -05:00
Jeff Epler f80daa51c9 GFXcanvas: Allow subclass to take charge of buffer allocations (#465)
* GFXcanvas: Allow subclass to take charge of buffer allocations

In Adafruit_dvhstx, the low level driver takes charge of the framebuffer
allocations. Consequently, any allocation by the GFXcanvas class would be
an unused waste of memory.

Introduce a new constructor parameter `bool allocate_buffer=true`. The
default preserves the old behavior of allocating the buffer in the
constructor and freeing it in the destructor, while passing in `false`
skips buffer allocation & freeing.

In this case, the subclass must allocate the buffer before the first
drawing operation (such as in its constructor or begin method), and
free it in its own destructor or end method.

The subclass can also freely change the buffer pointer at runtime, for
instance in a swap method if the underlying framebuffer is double-buffered.

* experimentally run a different clang-format

This runs version 19.1.7: uvx clang-format -i *.cpp *.h

the changes look similar to what was shown during CI

* undo one edit that ci doesn't like
2025-02-19 10:15:01 -05:00
Jeff Epler 1124b157d5 Merge pull request #394 from Rotzbua/patch-1
Doc: fix link to Adafruit GFX github repository
2025-02-18 20:14:09 -06:00
Jeff Epler 19ae104713 Merge pull request #313 from jayzakk/lgt8-support
add support for LGT8F cpu
2025-02-18 19:55:49 -06:00
Jeff Epler 8830fe2aee Merge pull request #449 from nocnokneo/fix-uint8-pin-overflow
Fix broken reset logic if reset pin exceeds 127 due to int8 overflow
2025-02-18 19:52:33 -06:00
Ade Novid b2c1e04bf4 fix(fontconvert): use pkg-config 2025-02-07 00:13:25 +07:00
Tyeth Gundry d472098789 Update library.properties - bump version to 1.11.1 1.11.11 2024-10-09 01:42:54 +01:00
Meco Man 22ad39d702 add ARDUINO_ARCH_RTTHREAD to support RTduino (#460) 2024-10-07 09:48:11 -04:00
Taylor Braun-Jones ec6df32920 Fix broken reset logic if reset pin exceeds 127 due to int8 overflow 2024-09-11 20:52:15 +00:00
John Boiles 7685d225c1 For ESP-IDF builds use arduino-esp32 instead of arduino dependency 2024-07-31 17:19:10 -07:00
Tyeth Gundry 0e32d7dc76 Update library.properties - bump version to 1.11.10 1.11.10 2024-07-23 15:16:47 +01:00
gilesp1729 7de7487729 Spaces and tabs! 2024-07-21 08:13:42 +10:00
gilesp1729 b40954ba96 Fix coding standard changes again picked up by PR build. 2024-07-21 07:29:30 +10:00
gilesp1729 68366b0716 Make charBounds virtual, so getTextBounds can use an override. 2024-07-20 18:15:13 +10:00
Zane Bauman 5080bec822 Allow using ATtiny84 (#455) 2024-07-18 10:16:19 -04:00
gilesp1729 81764008a4 Reformat a line of code that apparently violated some coding standard. 2024-07-09 20:23:16 +10:00
gilesp1729 4e46790eda Make Adafruit_GFX_Button::drawButton work with custom fonts by using getTextBounds to obtain the text bounds. 2024-07-09 14:58:37 +10:00
Carter Nelson 126007f2c5 Update library.properties 1.11.9 2023-10-10 14:48:48 -07:00
Carter Nelson 6338e269e7 Merge pull request #434 from caternuson/esp32_warns
Remove volatile from wait loops
2023-10-10 14:48:10 -07:00