Commit Graph
422 Commits
Author SHA1 Message Date
LizandGitHub 2c4630cc13 Update library.properties 2025-02-24 12:40:13 -05:00
Jeff EplerandGitHub 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 EplerandGitHub 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 EplerandGitHub 19ae104713 Merge pull request #313 from jayzakk/lgt8-support
add support for LGT8F cpu
2025-02-18 19:55:49 -06:00
Jeff EplerandGitHub 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
Tyeth GundryandGitHub d472098789 Update library.properties - bump version to 1.11.1 1.11.11 2024-10-09 01:42:54 +01:00
Meco ManandGitHub 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
Tyeth GundryandGitHub 0e32d7dc76 Update library.properties - bump version to 1.11.10 1.11.10 2024-07-23 15:16:47 +01:00
Zane BaumanandGitHub 5080bec822 Allow using ATtiny84 (#455) 2024-07-18 10:16:19 -04:00
Carter NelsonandGitHub 126007f2c5 Update library.properties 1.11.9 2023-10-10 14:48:48 -07:00
Carter NelsonandGitHub 6338e269e7 Merge pull request #434 from caternuson/esp32_warns
Remove volatile from wait loops
2023-10-10 14:48:10 -07:00
caternuson 3c0c85ba5d clang 2023-10-10 14:34:28 -07:00
caternuson 8eca715530 remove loops 2023-10-10 14:13:04 -07:00
caternuson f9821f6821 remove volatile 2023-10-10 12:19:26 -07:00
Tyeth GundryandGitHub b0ac687159 Update library.properties - bump to version 1.11.8 1.11.8 2023-09-26 13:36:01 +01:00
ladyada ff70355ed6 for unknown reason, esp8266 wants delay() not yield() so it doesnt crash 2023-09-24 01:09:06 -04:00
Eva HerradaandGitHub 83a182d260 Bumped to 1.11.7 1.11.7 2023-07-18 15:34:52 -04:00
Eva HerradaandGitHub 8094f6a295 Bumped to 1.11.6 2023-07-18 15:34:28 -04:00
Marcel RobitailleandGitHub 15ebe114c4 Fix missing imports in font files for PlatformIO (#423)
* Fix missing imports in font files for PlatformIO

Fixes #416

* Add #pragma once

* Run clang-format
2023-06-16 10:47:34 -04:00
dherrada 2b3e45853a Update CI action versions 1.11.6 2023-05-12 11:23:54 -04:00
Rotzbua 4de9954507 Doc: fix link to Adafruit GFX github repository 2023-03-27 03:32:58 +02:00
Phillip Burgess 5ea4be3ffe Fix bug w/large GFXcanvas1's (use 32-bit byte counts) 1.11.5 2023-01-18 14:53:07 -08:00
Phillip Burgess e122c3d20f Doxy class members moved from private to protected 1.11.4 2023-01-16 15:18:35 -08:00
Phillip Burgess 740677a733 Make canvas buffers protected instead of private members
A use case came up where it was helpful to be able to alter the buffer pointer in a subclass. This is esoteric and should be used with care.
2023-01-16 15:02:36 -08:00
Eva HerradaandGitHub 91d916deeb Bump to 1.11.3 1.11.3 2022-06-29 13:17:48 -04:00
Paint Your DragonandGitHub 66f5155f39 Merge pull request #392 from waynepiekarski/master
Fix up errors caused by the code using same names defined elsewhere
2022-06-28 15:42:20 -07:00
Wayne Piekarski c341c18f7a Fixes -Wshadow "error: declaration of 'byte' shadows a global declaration"
Arduino.h defines "typedef uint8_t byte" that conflicts with this declaration
2022-06-22 09:33:21 -07:00
Wayne Piekarski f8e9621bad Fixes -Wshadow "error: declaration of 'buffer' shadows a member of 'GFXcanvas1'"
No need to declare local buffer variable for getBuffer() since it already exists.
2022-06-22 09:32:00 -07:00
Eva HerradaandGitHub 976bfb3d8b Bump to 1.11.2 1.11.2 2022-06-13 14:35:18 -04:00
alba-adoandGitHub ad4b6b4206 Fixing PlatformIO dependency problem (#389)
Fixing the PlatformIO dependency problem mentioned in; https://community.platformio.org/t/adafruit-gfx-lib-will-not-build-any-more-pio-5/15776/12
2022-06-07 11:38:02 -04:00
Eva HerradaandGitHub ef17614241 Bump to 1.11.1 1.11.1 2022-05-09 15:49:22 -04:00
Eva HerradaandGitHub 071b6d5715 Bump to 1.11.0 1.11.0 2022-05-02 17:49:51 -04:00
Paint Your DragonandGitHub f1f7866420 Update version in library.properies for dmaBusy() 2022-04-27 10:23:22 -07:00
Paint Your DragonandGitHub 7bb0d18fd2 Merge pull request #386 from homeodor/master
Add bool dmaBusy()
2022-04-27 10:22:32 -07:00
Alexander Golovanov 0548084d9a Fixed Doxygen 2022-04-27 19:01:45 +03:00
Alexander Golovanov 8d14ea77ac Fixed clang-format 2022-04-27 18:43:27 +03:00
Alexander Golovanov 09cb6f4993 Add dmaBusy() 2022-04-26 15:28:36 +03:00
Eva HerradaandGitHub 6f4981e2f1 Bump to 1.10.14 1.10.14 2022-03-17 11:51:55 -04:00
Melissa LeBlanc-WilliamsandGitHub 866249d13d Merge pull request #385 from adafruit/revert-383-master
Revert "Speed up internal font drawing for opaque background color"
2022-03-16 11:52:37 -07:00
Melissa LeBlanc-WilliamsandGitHub 605ea88e40 Revert "Speed up internal font drawing for opaque background color" 2022-03-16 11:51:38 -07:00
Melissa LeBlanc-WilliamsandGitHub 2fbbfa224f Merge pull request #383 from bitbank2/master
Speed up internal font drawing for opaque background color
2022-03-14 10:26:18 -07:00
Laurence Bank 77d05f5ab5 Attempt to fix doxygen errors 2022-03-09 11:52:32 +00:00
Laurence Bank c035859fcc ran clang-format 2022-03-09 11:19:00 +00:00
Laurence Bank a8f1bd54bb missed removing one more #ifdef 2022-03-08 17:28:04 +00:00
Laurence Bank 8bab5dba75 revered AVR exclusions 2022-03-08 17:18:26 +00:00
Laurence Bank 99c324d33e second attempt to stop AVR build from messing things up for everyone else 2022-03-08 15:55:52 +00:00
Laurence Bank 14fd8ab168 disabled change for AVR targets 2022-03-08 15:42:34 +00:00
Laurence Bank 9ac47e8616 Sped up internal font drawing for opaque background color 2022-03-08 14:38:41 +00:00
Eva HerradaandGitHub 4a33fcd467 Bump to 1.10.13 1.10.13 2022-01-24 12:05:42 -05:00