Commit Graph

65 Commits

Author SHA1 Message Date
Bodmer
96228cbf44 Add Sprite rotation and examples
Sprites can be rendered rotated with defined pivot points, 3 new
examples have been added "Rotated_Sprite_1/2/3".
The FLASH bitmap example has been moved to the Generic examples folder.
Boundary checks have been added to pushImage()
A new scrolling and wrapping in a Sprite example has been added.
2019-01-06 01:14:10 +00:00
Bodmer
046e48f8c3 Delete legacy example 2018-11-25 18:08:29 +00:00
Bodmer
a0e2bc97d6
Comment typo 2018-11-24 23:45:31 +00:00
Bodmer
b0d56ce394 Add ability to scroll 1bpp Sprites
New example added: Sprite_scroll_1bit
2018-11-24 23:30:40 +00:00
Bodmer
1cf2305e4d Add capability to read TFT SDA bi-directional pin
Tested on an ESP32 with ST7789V display
SDA read is very slow on an ESP8266 (to be investigated)
Added new setup #define TFT_SDA_READ
Add new ESP32 and ESP8266 compatible in example/Generic folder to test
capture of TFT screen
2018-11-23 03:09:07 +00:00
Bodmer
b93a40a54f
Correct datum marker for different screen sizes
datum marker was not in correct position on screens that are not 320x240 pixels
2018-10-23 14:20:45 +01:00
Bodmer
d12a68a49d Add checks in examples for missing font files 2018-10-21 21:57:30 +01:00
Bodmer
1a0b37097a Add new anti-aliased (smooth) font examples + bug fixes
Four new examples have been added to show different methods of rendering
the anta-aliased fonts.  A few minor bugs have been corrected associated
with the font rendering. drawNumber and drawFloat handle fixed width
mono fonts with no digit movement.
2018-10-21 17:53:27 +01:00
Bodmer
a38efa5330 Add missing image files 2018-10-10 22:52:21 +01:00
per1234
30c01c94ef
Rename file to match #include directive
Mismatch of case between filename and #include directive causes compilation to fail in case sensitive operating systems such as Linux. Rather than correct the filename in the #include directive I have chosen to change the filename to make it consistent with the other file of the similar name. A search indicates that this is also consistent with the official spelling of the font.
2018-06-02 05:41:08 -07:00
Bodmer
4a52f5e685 Add ability to set ST7735 tab color from sketch
Use line is form:
tft.init(1);
or:
tft.init(INITR_REDTAB);
// Enumerated the configurations in library are:
#define INITR_GREENTAB
0x0
#define INITR_REDTAB    0x1
#define INITR_BLACKTAB  0x2
#define
INITR_GREENTAB2 0x3 // Use if you get random pixels on two edges of
green tab display
#define INITR_GREENTAB3 0x4 // Use if you get random
pixels on edge(s) of 128x128 screen
#define INITR_GREENTAB128 0x5 // Use
if you only get part of 128x128 screen in rotation 0 & 1
#define INITB
0xB
2018-05-25 22:48:22 +01:00
Bodmer
96916c2bce Add SPIFFS BMP (bitmap) image file rendering example 2018-05-01 16:44:41 +01:00
Bodmer
151dd60913 Add ESP32 SDcard jpeg file rendering sketch 2018-04-23 21:02:50 +01:00
Bodmer
235887d860 Update weather station example
Corrected jpeg render fn to handle any width image
Minor tweaks
Remove version number from sketch name, put in settings.h
2018-04-23 20:05:50 +01:00
Bodmer
54b3f0f63d Add drawXBitmap() function and example
Example is in Generic folder, draw the Espressif logo on the screen.
2018-04-23 17:16:18 +01:00
Bodmer
f56184e9cd Add diagnostic sketches
Do not load button class is touch screen chip select not defined
2018-04-11 01:03:26 +01:00
Bodmer
f2c92fb75f Free the memory in example! 2018-04-03 01:09:10 +01:00
Bodmer
ada678d76e Added Waveshare ePaper support
Also added ability to push 1bpp bitmaps to a Sprite to support rendering
images on an EPaper screen.

Floyd-Steinberg dithering and basic graphics example added as first
ePaper demo.
2018-04-02 02:53:42 +01:00
Bodmer
d9d5625e48 Add 1 bpp examples 2018-03-28 01:59:06 +01:00
Bodmer
0f22d124f6 Add note rthat Read ID sketch does not work with parallel displays 2018-03-22 22:33:01 +00:00
Bodmer
bbacd3a8a3 Fix issue in #110
Array name close[] clashes with a ESP32 function name.
Renamed array to closeX[]
2018-03-22 22:27:09 +00:00
Bodmer
8752236ac2 Add smooth (antialiased) fonts 2018-02-24 19:02:20 +00:00
Bodmer
5ed1bb6777
Allow larger images 2017-12-16 01:38:09 +00:00
Bodmer
0dacb156ed
Allow larger images 2017-12-16 01:37:22 +00:00
Bodmer
ca13757c9b
Allow larger images
width or height over 127 pixels got converted to a negative number!
2017-12-16 01:36:16 +00:00
Bodmer
93ba6e3716 Add scrolling inside a sprite
Added example "Sprite_scroll"
Tidy up virtual function list
Add PROGMEM bitmap image functions
2017-12-10 23:04:31 +00:00
Bodmer
d2104f6d85 Add ability to plot Sprites with a "transparent" colour
Can now specify a colour that will not be plotted so some part of the
Sprite are "transparent" and the TFT backforund shows through. New
example added for demonstration.
2017-12-03 02:29:39 +00:00
Bodmer
312b7c1128 Tidy up 8 bit sprite code and fix gugs
Minor tweaks and speed improvements
2017-11-24 14:12:29 +00:00
Bodmer
3b5e673603 Version update, minor tweaks and typos 2017-11-22 00:53:09 +00:00
Bodmer
3e3d638bba Add support for 8 bit color sprites (needs less RAM)
Added setColorDepth(d) where "d" is 8 or 16.
Default is 16 bit if not specified.
2017-11-21 22:57:11 +00:00
Bodmer
1b5ffe4189
Fn changed 2017-11-15 22:41:17 +00:00
Bodmer
fbb07be73b
Stop pointer error 2017-11-15 22:38:57 +00:00
Bodmer
2c6f1c70e4
typo 2017-11-15 21:55:06 +00:00
Bodmer
943c18facf Add sprite class
Sprites (images) can now be created in RAM, written to with text and
graphics and rendered to screen quickly, this makes it easier to get
flicker frre screen updates.
ESP8266 can typically create up to a 160x128 sprite, and ESP32 about
200x200 pixels. 16 bit colour only at the moment, may soon implement 8
bit colour to reduce RAM.
2017-11-15 20:26:22 +00:00
Bodmer
62c02b67f7
Replace accidentally deleted line! 2017-11-15 10:19:45 +00:00
Bodmer
2e91bcd137
Issue #53 fix
In case of a non- supported BMP, the _tft->setRotation() should not be executed.
2017-11-13 21:15:28 +00:00
Bodmer
fbdc65a3c7 Whoops, another typo - who put S and W keys next to each other ;-) 2017-10-25 02:08:52 +01:00
Bodmer
5d497f751b Correct typo 2017-10-25 02:05:59 +01:00
Bodmer
acd3fe7b85 Add simple touch calibrate and test sketch
This one does not need SPIFFS, cal data is embedded in sketch by user.
2017-10-25 01:57:42 +01:00
Bodmer
e4ea506b65 Update touch, add Button class
Touch reliability improved by using pressure and double sampling. Added
Adafruit compatible Button class. Added touchscreen on/off and keypad
examples.
2017-10-23 01:59:37 +01:00
Bodmer
167dcd5373 Revert 160 x 128 jpeg code 2017-10-17 00:11:13 +01:00
Bodmer
0bcf7eaa6b Correct jpeg decoder image edge rendering
Revert setup file and add setup 10
2017-10-17 00:07:49 +01:00
Bodmer
afe310f00f Merge pull request #43 from maxpautsch/master
Add XPT2046 touch controller support
2017-10-16 23:00:12 +01:00
Bodmer
80b5d91ba4 Fix right edge jpeg image corruption
Jpeg images with non integer number of MCU pixels showed corrupted right
edge. Fix is to concatenate pixels into a contiguous block. Examples
corrected.
2017-10-11 00:59:14 +01:00
Max
548fcca258 now calibration works with all orientations. 2017-10-01 21:34:11 +02:00
Max
b6d234af70 should add ESP32 support. do not have hardware to test. 2017-10-01 00:58:33 +02:00
Max
ca54325fbc Add XPT2046 touch controller
supports esp8266 + RPi displays
OO
2017-10-01 00:26:33 +02:00
Bodmer
15dcc77909 Add jpeg examples for 160x128 display 2017-07-15 23:39:57 +01:00
Bodmer
399411312c Fix date over-write bug
Also text over-write during bootup
2017-04-27 23:56:38 +01:00
Bodmer
40d35b1892 Examples menu now based on resolution
Reference to particular drivers in examples have been removed as
multiple display drivers are now supported.
Tabs replaced by spaces in header file by file editor.
RPi TFT with write strobe SPI clock rate dropped to 20MHz (display
cannot cope with new high rate siWriteBlock() function)
2017-04-24 22:35:11 +01:00