Commit Graph

130 Commits

Author SHA1 Message Date
Bodmer
caa1076c13 Fix #2793 2023-08-18 18:17:07 +01:00
Bodmer
5c1f163b05 Fix #2790 2023-08-16 20:46:03 +01:00
Bodmer
df96536152
Update Touch.cpp 2023-03-03 07:26:21 +13:00
Bodmer
34850973a0 Various updates
RM68120 support for RP2040 added
Various other updates and typo corrections
2023-02-20 19:03:44 +00:00
Bodmer
479bff493f Related to #2376
Make sure palette space deleted.
2023-02-03 19:47:24 +00:00
Bodmer
80912d075d Fix #2376 2023-02-03 19:39:24 +00:00
Bodmer
d37f202b94
Arc test (#2316)
* Add smooth arc drawing function

Update ESP8266 architecture reference
Add pushMaskedImage() to render 16bpp images with a 1bpp mask (used for transparent PNG images plus with sprites)

New functions added using drawArc:
drawSmoothArc
drawSmoothCircle
drawSmoothRoundRect
New sqrt_fraction() added to improve smooth graphics performance on processors without a FPU (e.g. RP2040)

Faster alphaBlend() function added which retains 6bpp for green

Rename swap_coord() to transpose()

* Update TFT_eSPI.cpp

* Add arc examples
2023-01-13 01:31:57 +00:00
Bodmer
2b576dc614
Fix #2018 2022-09-14 12:07:39 +01:00
Bodmer
afd72efb5a
Fix #1983 2022-08-25 09:41:04 +01:00
Bodmer
cc9787deaf Update for Pico W, update sprite smooth font rendering
Update example for Pico W

If a background colour is not specified for smooth font rendering in a sprite then read the sprite background pixel colour.
2022-07-22 20:16:56 +01:00
Bodmer
781b0bc67c Fix #1877 2022-06-16 23:31:07 +01:00
Bodmer
ba819765af Avoid warnings if fonts disabled in setup 2022-05-19 21:47:01 +01:00
Bodmer
7bf48bb179 Add 16 bit parallel for RP2040 processor
Correct legacy comments
Add ESP32 S3 parallel setup 70d
Add setups 105-107 for RP2040 with 16 bit display
Add file conversion notes to PNG array example
2022-05-16 19:58:05 +01:00
Bodmer
1f7ce88dbe
Fix #1812
Result of "fillheight = gFont.maxAscent - gdY[gNum];" can be negative.
2022-05-03 18:23:22 +01:00
Bodmer
7d3f4f21b1 Fix #1802 2022-04-29 20:59:25 +01:00
Bodmer
7fc8b99b64 Add new background fill approach to smooth fonts
A new background rendering approach is used for smooth fonts which almost eliminates flicker. tft.print... can now be used with a background rendered for smooth fonts. Font_Demo_1/2/3... examples have been updated.
A new "docs" folder has been created and files moved there. The Tools folder now only contains support tools.

#1757 fixed by using Arduino calls.

A new USER_SETUP_ID parameter can be added to setup files and checked via a new verifySetupID(id); function.

Version raised to v2.4.50
2022-04-18 19:15:40 +01:00
Bodmer
d0494af057
Fix #1776 2022-04-14 15:14:45 +01:00
Bodmer
f790c86818
Fix #1776 2022-04-14 15:12:14 +01:00
Bodmer
810aa98fc0
Fix #1735 2022-03-22 02:26:44 +00:00
Bodmer
8480f39a9c Various updates - raise to version 2.4.43
Sprite class uses TFT_eSPI setBitmapColor - fn deleted
Small performance improvement to RP2040 SPI PIO
Typo corrections
Correct (unused) tft_Write_32 for STM32
Update HX8357D rotation code
Enable software reset for ILI9486
Add preliminary RM68120 support
2022-03-17 14:12:10 +00:00
LeFauve
64afd184dc Prevent TFT_eSprite::pushToSprite() to skips pixels when dealing with transparency. 2022-02-05 11:40:55 +10:00
Bodmer
b6db90ada4 Add new anit-aliased graphics functions
Examples to follow.
2022-02-03 15:37:44 +00:00
Bodmer
e61fb8c78d Fix #1547 for RP2040 processor with ST7789 TFT
Add Arduino Nano Connect setup example 62
2022-01-26 22:20:34 +00:00
Bodmer
73ff86b85b Support external font classes in button class
Original Adafruit button rendering code can be used with an external font class if "textFont" is set to 255.

See #1536
2022-01-08 14:50:44 +00:00
Bodmer
1242ba14d1 Bug fix 2022-01-08 02:02:29 +00:00
Bodmer
8a2398451b RP2040: add SPI PIO interface option, enhance 8 bit parallel PIO
The RP2040 processors can now drive 8 bit parallel and SPI displays using the PIO hardware.

The PIO offloads the processor by providing:
1. PIO managed setWindow sequence
2. PIO managed block and screen fill
2022-01-02 01:08:22 +00:00
Bodmer
a474f4cd23 Fix #1313 2021-12-12 01:33:27 +00:00
Bodmer
9bf9c0940f Update for GC9A01 display
Correct sprite rendering
GC9A01 expects exact number of pixels to fill setWindow area.
2021-11-28 13:57:15 +00:00
Bodmer
e23d8e083b Correct comments 2021-11-03 23:45:16 +00:00
Bodmer
8164629397 Fix #1168 2021-05-11 21:38:26 +01:00
Bodmer
91c34afc49 Replace deprecated boolean type
Note that Processing sketches (pde type) do not accept bool, so boolean is correct.
2021-03-31 13:52:42 +01:00
Bodmer
2bf4d15b02 Fix #1022 2021-02-23 22:38:03 +00:00
Bodmer
5f171eeefd
Fix #923 and #915 2021-01-08 23:53:28 +00:00
Bodmer
9fec44b6ea Implement #896 plus minor changes
When rendering a smooth font in a sprite the anti-aliasing will pick up the sprite background colour if the text background colour is not set.
2020-12-31 17:58:28 +00:00
Bodmer
63dc212061
Correct white=transparent bug 2020-12-15 16:50:12 +00:00
Bodmer
ad0130309c Add pushToSprite with transparent colour
New function:
pushToSprite(TFT_eSprite *spr, int32_t x, int32_t y, uint16_t transp)
// Note: The following sprite to sprite colour depths are currently supported:
//    Source    Destination
//    16bpp  -> 16bpp
//    16bpp  ->  8bpp
//     8bpp  ->  8bpp
//     1bpp  ->  1bpp
2020-12-02 13:39:19 +00:00
Bodmer
42e6fc87ff Feature update
Add ILI9225 support
Add viewport feature to Sprites
Rationalise common TFT_eSPI and Sprite functions and variables to use inherited functions width(), height(), rotation(), write(), pivot, cursor, swapBytes.
2020-12-01 20:06:32 +00:00
Bodmer
788048155c
Fix #827 (function ambiguity with Arduino DUE) 2020-11-17 18:40:39 +00:00
Bodmer
505ca81a70 Complete viewport update 2020-10-11 22:36:02 +01:00
Bodmer
13d217dc89 Add viewport feature
2 new example sketches added for viewport demonstration
2020-10-06 00:51:41 +01:00
Bodmer
0c49b71dd4
Fix #751 2020-09-14 21:40:20 +01:00
Bodmer
d7fdcc0991 Fix #740 and #704
#740: To avoid ambiguity the pushSprite for writing a sprite to another sprite has been renamed pushToSprite

#704: Change to 18 bit colurs for SSD1963 with SPI interface

Remove outdated TFT_SPIFFS_Jpeg example
2020-09-07 22:04:42 +01:00
Bodmer
4c314c5c33
Revert "Resolve ambigous pushSprite(int int int) methods" 2020-09-07 13:05:59 +01:00
QrackEE
ddf03d43ea Resolve ambigous pushSprite(int int int) methods 2020-09-05 16:54:24 +02:00
Bodmer
731228d13a Fix deleteSprite
Fixes #736 and also delete color map even if the sprite has not been created.
2020-08-28 21:18:26 +01:00
Bodmer
52ee45b30b Correct medium warnings #702 2020-08-05 23:37:24 +01:00
Bodmer
cfcb9c6632 Revert "Elimnate some warnings #702"
This reverts commit 31125ca5ac.
2020-08-05 23:13:59 +01:00
Bodmer
31125ca5ac Elimnate some warnings #702 2020-08-05 23:01:59 +01:00
Bodmer
dc114db01b Srite class updates + others
Add 2 new pushSprite functions:
1. Sprite to sprite
2. windowed are of sprite to screen
Examples to follow
Bug fixes to sprite class
2020-08-05 20:06:44 +01:00
Bodmer
c124688ab1
Fix #697
Untested but looks correct!
2020-07-19 10:45:36 +01:00