Commit Graph

369 Commits

Author SHA1 Message Date
Bodmer e9d405ea1f Fix image cropping bug plus minor update
Images/sprites overlapping both sides of the display were not correctly
cropped.
Option added to allow RGB<>BGR colourr swap option to be used.
ESP8266 Wemos D1 R1 pin numbering difference accomodated.
TTGO T4 setup changed to use HSPI port.
2019-10-21 22:56:35 +01:00
Bodmer d3210a7ee6 Fix #417 and add for 135x240 display
Setup 135 is for TTGO T Display (ESP32)
Plus minor tweaks to avoid some warnings
2019-10-07 17:56:17 +01:00
Bodmer 9a84fb156b
Fix #424 2019-10-03 23:53:43 +01:00
Bodmer 0769e49718
Update Floyd_Steinberg_BMP.ino
Correct compile error.
2019-09-28 21:54:42 +01:00
Bodmer 4f68cf90e8
update diagnostic version number 2019-08-08 09:56:52 +01:00
Bodmer 90189130ec Update for #379
Added support for ST7789 135 x 240 display which needs offsets
Added Setup135_ST7789.h as an example setup file for ESP8266
2019-07-31 01:07:05 +01:00
Bodmer 4a38aa6aec Correct issue #398 2019-07-30 17:59:08 +01:00
Bodmer 00bf69fc48 Correct #400 and #402 + other tweaks
Corrected font 2 rendering issue #402
Corrected NULL pointer issue #400
Changed grave ` character (key for this character is left of numeral 1
key) to degree symbol in font 2
Change setup24 so DC pin is not D3
2019-07-30 15:56:55 +01:00
Bodmer af4a96a47a Fix #402 2019-07-24 01:42:56 +01:00
Bodmer 92f12cd45c
RM68140 driver added 2019-07-21 13:38:58 +01:00
Bodmer 3f6c4072fc
RM68140 driver added 2019-07-21 13:37:51 +01:00
Bodmer d38bdac8f7
RM8140 driver added 2019-07-21 13:33:55 +01:00
Bodmer 9bd73a33dc
RM8140 driver added 2019-07-21 13:33:08 +01:00
Bodmer 50bc8c5ff0
Merge pull request #399 from dracir9/master
Add new driver RM68140
2019-07-21 13:31:47 +01:00
Bodmer b5db2cd3fa
minor edit 2019-07-21 13:27:27 +01:00
Ricard Bitria Ribes f14ee2cd9f Add new driver RM68140
-Added new RM68140 480x320 TFT. It works like ILI9481 but needed some changes to make setRotation() work properly.
-Fixed some PlatformIO warnings
2019-07-20 20:57:22 +02:00
Bodmer ab5e407e2e
Merge pull request #366 from ImpulseAdventure/Fix_getTouch_bounds
Fix getTouch() return status upon bounds overflow
2019-06-11 19:42:45 +01:00
Bodmer da349a5fbd Minor changes 2019-06-03 23:31:04 +01:00
Calvin Hass a627c51118
Fix getTouch() return status upon bounds overflow
- When the post-remapped coordinates exceed screen bounds, `getTouch()` was returning a "valid" status without updating the coordinates. This would result in spurious touch detection events at the screen boundaries.
- The fix ensures that the return value is set to "invalid" in this boundary condition.
2019-05-21 07:13:19 -07:00
Bodmer da2239f4c1
ESP8266 compiler compatibility update #361 2019-05-20 12:35:17 +01:00
Bodmer f6dad6e4ab
ESP8266 compiler compatibility update #361 2019-05-19 10:29:21 +01:00
Bodmer 0a1aadfd5a
Correct byte swap for 18 bit colours 2019-05-19 09:25:16 +01:00
Bodmer e090cd8b62
Correct byte swap for18 bit colours 2019-05-19 09:24:00 +01:00
Bodmer 197c408d7d
Corrrect byte swap for 18 bit colours 2019-05-19 09:22:04 +01:00
Bodmer 9f17920115 Add ESP32 SD support for smooth font plus performance updates
Added SD card storage for smooth fonts with ESP32
ESP32 will use PSRAM (if available and enabled) to hold smooth font
metrics
Improve performance of ESP32 Sprite shared functions
Add basic ST7789 driver option
Latent bug fixes for pin mask
2019-04-15 12:23:16 +01:00
Bodmer 652383b694
Fix part of Issue #322 2019-03-04 13:34:29 +00:00
Bodmer 46425b83bc Fix bug in UTF-8 line buffer decoder 2019-02-22 00:13:40 +00:00
Bodmer 43862876a2 Permit larger anti-aliased fonts
Size limit for anti-aliased fonts raised to ~200 pixels
2019-02-20 23:33:21 +00:00
Bodmer 1edfe6c680 Fic #311
Pixel function used wrong width and height for bounds check.
Remove String variable in smooth font code (not used)
Correct ESP8266UncannyEyes example for new setAddrWindow parameters
2019-02-20 00:45:02 +00:00
Bodmer 66a21cb761 Fix ESP8266 core library issue reported in #310 2019-02-19 00:16:39 +00:00
Bodmer 13f0589aa6
Adapt for new setAddrWindow parameters 2019-02-18 01:21:26 +00:00
Bodmer e17ba463c9 Add UTF-8 on/off control via new setAttribute function
No change to legacy sketches meeded, UTF-8 decoding is on by default.
Add colour test example.
2019-02-17 22:35:49 +00:00
Bodmer 26d7e4038a Fix touch screen handler
The touch screen handler was broken for the ESP8266 only. The library
uses SPI write only configuration for ESP8266 so the SPI buffer can be
recycled and it was left in write only mode. The library now switches
back to read & write mode at the end of a transaction.
2019-02-14 00:32:16 +00:00
Bodmer d6e07078f7
Remove obsolete comment 2019-02-13 09:32:13 +00:00
Bodmer dd4e184b53
Remove obsolete comment 2019-02-13 09:30:44 +00:00
Bodmer e25da37fc5 Correct diagnostic example 2019-02-11 21:09:38 +00:00
Bodmer 35a402f6a8 Raise issue in header 2019-02-10 21:38:34 +00:00
Bodmer 1e1e888fa0 Support extended font formats
Adafruit_GFX font support extended to Unidode Basic Multilingual Plane
Print stream deocdes UTF-8
Smooth font ascent and descent (affects line spacing) changed to rely on
metrics provided by Processing IDE (issue #303)
Bug fix for font rendering with no background on RLE native fonts
2019-02-10 21:36:40 +00:00
Bodmer 6a42e4b16d
Remove debug lines to fix rendering part of #303 2019-02-10 11:06:40 +00:00
Bodmer b5a74a016a
Fix #301 2019-02-10 01:25:34 +00:00
Bodmer 0b8e957203 Remove screen server code 2019-02-08 18:50:03 +00:00
Bodmer 61dfb2b4ac Extended character set suport for Adafruit_GFX format fonts
Supports Adafruit_GFX compatible font format with characters in the range 32-255.

Note that the font rendering functions expect UTF-8 encoded characters/strings.
2019-02-08 18:25:55 +00:00
Bodmer 7479f7e680 Fix transparent Sprite rendering 2019-02-04 01:48:53 +00:00
Bodmer 091d8cd231 Fix issue #297
There is a bug in the ESP8266 Arduino core that averwrites the overlap
mode setup and hold bits for the hardware driven SPI SS line.  The
TFT_eSPI library has been patched as a work-around.

In overlap mode to maintain the required setup and hold times at 80MHz
ESP8266 CPU clock the SPI rate must be 27MHz or less. At 160MHz CPU
clock the SPI rate can be 40MHz.
2019-02-03 21:54:24 +00:00
Bodmer 33d9313113
Update for ESP8266
ESP32 printf() can handle String type but ESP8266 cannot.
2019-01-31 01:17:19 +00:00
Bodmer caef4519f3 Improve bounds checking update CS management
Add bounds checking to graphics functions
Rationalise variable types and style used to minimse type casting needs
(this change ended up being a more extensive refactoring than
anticipated - but once started...)
Add version reporting to diagnostic sketch
Boost PDQ graphicstest performance
2019-01-25 14:25:40 +00:00
Bodmer e8a0024054
Fix issue #295 2019-01-25 13:03:28 +00:00
Bodmer 11ef56d48c Test slower DC and CS lines for a user 2019-01-23 20:55:04 +00:00
Bodmer 0460ab64d2 Delete weather-station example
Because Weather Underground will no longer support free API's
2019-01-22 19:09:18 +00:00
Bodmer 054a824eb8 Add ESP32 VSPI or HSPI port option + others
If the VSPI port is in use and pins are not accessible (e.g. TTGO
T-Beam)
then add or uncomment the following line in the setup header file:
//#define USE_HSPI_PORT

Minor performance tweaks for ESP32 to minimise the occurence of the slow
transaction overhead.

setAddrWindow now takes xstart, ystart, width and height as inputs

Multi-sample raw touch x and y for noisy displays

Example update for setAddrWindow change compatibility
2019-01-22 18:41:31 +00:00