Commit Graph

1009 Commits

Author SHA1 Message Date
Bodmer f3190fde71 Allow init() to be called in sketch to reset and re-initialise TFT
Solution to Issue #85
2018-01-27 19:22:42 +00:00
Bodmer 139fe8dc4c Stop y wrapping
I need this in my project but will add a switch.
2018-01-27 14:20:22 +00:00
Bodmer 9de702f8b3 Update issue 2018-01-27 13:47:57 +00:00
Bodmer 1f84ab0885 Reinstate 8bit pushColors()
Permits backwards compatibility
2018-01-27 13:46:59 +00:00
Bodmer b2e4e69f7a Fix Issue #81 2018-01-27 02:35:25 +00:00
Bodmer 6c993f8fd2 Add getCursorX() and getCursorY() functions
As requested in Issue #79

Function names are compatible with Adafruit_GFX

Also trimmed out duplicate keywords
2018-01-26 15:19:40 +00:00
Bodmer 26c4cac3c9
Merge pull request #80 from per1234/keywords_txt-capitalization
Correct capitalization of keywords.txt
2018-01-26 11:21:29 +00:00
per1234 c7ee9c27e3
Correct capitalization of keywords.txt
Incorrect capitalization of the filename caused keywords highlighting to not work on filename case sensitive operating systems.
2018-01-25 18:28:41 -08:00
Bodmer 523fec4e3f
Update 2018-01-08 23:37:02 +00:00
Bodmer aa2c79a25f Performance enhancements, new functions, bug fixes
1. Ability to swap bytes in pushColors() and pushImage()
2. pushImage() will handle FLASH stroed images
3. pushImage() will accept a transparent color
4. pushRect() deprecated but still works
5. setSwapBytes() to set swapping bytes in color for pushImage() and
pushColors() true or false
6. getSwapBytes() returns swap bytes parameter
7. fillCircle() and fillCircleHelper() changed to use horizontal lines
to speed up plotting in a sprite
8. fillTriangle bug fix by moving spi_begin()
9  Small performance improvement to setAddrWindow()
10. pushColor() bug fix for swapped bytes
11. pushColors() performance improvement for ESP8266 and add optional
byte swap parameter, accepts higher pixel count
12. move spi_begin() later in drawLine() incase fn returns early
13. add spi_end() in drawLine incdae return occurs early
14. Add color332() fn to convert 16 bit to 8 bit colour
15. Sprite: createSprite() checks if sprite already created and returns
pointer if it does
16. Sprite: one extra "off-screen pixel added to a sprite to point
out-of-bounds setWindow coords to
this avoids extra bounds checks in push/write color
17. Sprite: setColorDepth allows changing of depthe for existing sprtie
and returns a new pointer to the new sprite
18. Sprite: pushImage() accepts a swapped byte parameter
19. Sprite: setSwapBytes() to set swapping bytes in color for
pushImage() and pushColors() true or false
20. Sprite: getSwapBytes() returns swap bytes parameter
21. Sprite: setWindow deals with duff out of sprite coords.
22. Sprite: bug in draw char corrected which could draw too many
over-writing pixels
2018-01-08 23:19:42 +00:00
Bodmer 53cc05d9e3
Correct typo and mark-up format errors 2017-12-29 20:08:58 +00:00
Bodmer 1cc63795e6
Add future developments section 2017-12-29 17:29:34 +00:00
Bodmer 5e98ce5294 Avoid divide by zero crash if touch screen not fitted or not wired up 2017-12-27 14:57:01 +00:00
Bodmer b536af5062 Fix bug
If touch not used dummy getTouch missing the new threshold parameter.
2017-12-22 00:50:24 +00:00
Bodmer 936b5cccc7 Add default touch detect threshold 2017-12-22 00:02:31 +00:00
Bodmer 2e84218ecb Add touch pressure hysterisis and user defined sensitivity
getTouch accepts a third optional pressure threshold, default is 600,
increasing means harder presses are needed.
getTouch(uint16_t *x, uint16_t *y, uint16_t threshold = 600);
2017-12-21 23:16:11 +00:00
Bodmer 170473b3e4
Merge pull request #67 from atanisoft/master
Allow externally defined configuration rather than User_Setup.h modifications in library
2017-12-17 12:07:05 +00:00
atanisoft ef543a652c
Update User_Setup_Select.h
Adding ability to load settings from the calling program rather than modifying the library for each project that uses it. This is mostly for PlatformIO IDE which manages the libraries differently than Adruino IDE.
2017-12-16 06:50:23 -08: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 16f6b9cc0b
Update time 2017-12-15 11:15:38 +00:00
Bodmer 907401d7cb
Doh! 2017-12-14 02:03:16 +00:00
Bodmer 6092522a36
typo 3 - too much of a hurry! 2017-12-14 01:22:26 +00:00
Bodmer d708012d5f
typo 2017-12-14 01:21:51 +00:00
Bodmer 7569f18c01
typo 2017-12-14 01:21:14 +00:00
Bodmer abd5f34cd9 Add license file in response to #65 2017-12-14 01:17:47 +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 7f909a1527 Fix bug in 16 bit transparent Sprite 2017-12-03 02:55:43 +00:00
Bodmer 73c7f46f37 Typo - doh! 2017-12-03 02:35:41 +00:00
Bodmer 0841635b4e Update ReadMe 2017-12-03 02:34:38 +00:00
Bodmer ae8571b474 Raise version 2017-12-03 02:30:42 +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 9d2c7f21fc
Correct Sprite odd pixel count width crash
The 32 bit alignment offset must be checked for every line to prevent crash with odd pixel count lines.
2017-12-01 15:37:08 +00:00
Bodmer 6b924c5504
Raise version for #60 fix 2017-11-30 22:43:10 +00:00
Bodmer 0a2c84212b
Raise version for #60 fix 2017-11-30 22:42:47 +00:00
Bodmer 8b24e61b99
Fix issue #60
Do not adjust x datum for characters that have a positive offset.
2017-11-30 22:41:23 +00:00
Bodmer 706af163c0 Add some crash prevention
Prevent memory access to non-existant Sprite memory areas which would
cause a processor reset.
2017-11-30 00:27:56 +00:00
Bodmer 75bc8c45d7
Raise version to 0.17.12 2017-11-29 10:00:59 +00:00
Bodmer 1e60eda376
Raise version to 0.17.12 2017-11-29 10:00:11 +00:00
Bodmer 6fc63061d7 Filter bad character codes
Do not substitute bad characters for first valid one.
2017-11-29 02:00:47 +00:00
Bodmer e18383a29c Bounds check character codes (issue #58)
Correct isuue #58
2017-11-29 00:38:05 +00:00
Bodmer 34af7debc5
Merge pull request #57 from turiphro/master
Fix width/height override issue when using setRotation
2017-11-27 21:20:32 +00:00
turiphro b97324875d Fix width/height override issue when using setRotation
This commit fixes an issue when setting screen width
and height from the constructor (e.g., user sketch),
followed by setRotation(i). Previously, setRotation
used TFT_WIDTH and TFT_HEIGHT, ignoring user overrides.
2017-11-26 18:06:11 -08:00
Bodmer 58fa8326a2
Correct uninitialised warning on ESP32
int16_t  xo16 = 0, yo16 = 0;
2017-11-26 12:38:20 +00:00
Bodmer e2d019b656 Update version number 2017-11-24 15:04:15 +00:00
Bodmer 218dd1b06e Bug fix
Should have tested that last minute edit!
2017-11-24 15:03:24 +00:00
Bodmer 449c421915 Clarification on sizes 2017-11-24 14:26:27 +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 3e31f162fe
Typo 2017-11-22 01:00:37 +00:00