Commit graph

62 commits

Author SHA1 Message Date
Michael Hope 51dddbdc17 lcd: use writePattern for faster erases and lines.
The ESP8266 SPI implementation has a 'writePattern' function that
writes a repeating sequence (in this case a solid colour) to the SPI
port.  This fills up the FIFO and increases the bus utilisation.

Using this for clearing the screen cuts the demo run time from 4721 ms
to 3601 ms.  Also using this for the fast lines cuts the run time to
3424 ms.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-17 16:19:17 +02:00
Michael Hope a56ebc5151 lcd: send 16 bits at a time to speed up drawing.
If the hardware supports it, send 16 bits at a time.  This is
worthwhile on chips that have a FIFO like the ESP8266 as it cuts the
demo render time from 6083 ms to 4721 ms.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-17 16:05:01 +02:00
Michael Hope 999f5ff29d lcd: add support for the ESP8266.
Refactor the chip and data pins to generic functions.  Add support for
controlling CS and RS via the standard digitalWrite() functions.  Add
support for hardware SPI only devices.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-17 15:43:36 +02:00
Tony DiCola 2ad3ba5b70 Automatic library.properties generation. 2015-03-31 12:09:51 -07:00
ladyada e880eb1687 updated all the URLs 2014-09-05 16:18:28 -04:00
ladyada d5857fbd9d renamed, cleaned up init 2014-09-05 16:14:04 -04:00
ladyada 235e999cc4 only one needed 2014-09-05 16:11:51 -04:00
ladyada bd3abf87b8 updated rotation tester for default SPI and 1.44" 2014-09-05 16:11:28 -04:00
ladyada c747a0cf18 no need for two examples! 2014-09-05 16:08:31 -04:00
ladyada c0361be805 added universal setup for spi tft bitmap 2014-09-05 16:05:49 -04:00
ladyada 9bc135dedd clean up the graphics test (unify!) and add 1.44" TFT support 2014-09-05 12:55:49 -04:00
Phillip Burgess 8ad728d736 Fixed corrupt lines in spitftbitmap.ino 2014-03-03 14:41:59 -08:00
driverblock 9853303aa8 Due support in examples 2014-02-02 12:29:44 -05:00
Paint Your Dragon 4bff92483e Merge pull request #14 from PaulStoffregen/master
Support Teensy 3.0 & 3.1 using AVR code
2013-12-16 10:59:11 -08:00
PaulStoffregen 8e44c982f1 Support Teensy 3.0 & 3.1 using AVR code 2013-12-14 18:42:08 -08:00
Phillip Burgess 98c5d9d1a1 Modernized PROGMEM syntax 2013-11-08 10:44:20 -08:00
driverblock 5cc3cee855 Example reads SD and draws display using soft SPI
Compatible with Arduino Due when using Adafruit SD library
2013-11-06 09:58:36 +00:00
driverblock 112c334f68 Fixed spelling of pin constants for shield
Updated identifiers for shield pin constants to match breakout pin
constant identifiers
2013-09-29 12:03:10 -04:00
driverblock 1685681c51 updated for Arduino Due 2013-09-22 16:25:31 -04:00
driverblock 968d8a717d Add support for Arduino Due
LIbrary and examples updated to work with Arduino Due
2013-09-22 16:23:04 -04:00
Phillip Burgess 5e76c85a45 Fix for recent Adafruit_GFX change 2013-07-05 11:39:18 -07:00
ladyada 3c00bd1614 fix for black tab using MADCTL 2013-04-29 21:58:14 -04:00
ladyada 3656cb2430 Whee, support for black-tabs 2013-03-26 18:04:26 -04:00
ladyada 3d868aff97 Added support for black tab (ST7735S?) 2013-03-26 18:01:35 -04:00
ladyada 4aea3d1d73 hmm undo last commit 2012-11-12 12:33:55 -05:00
lady ada 288b91c820 Fixed progmem declarations (again?) 2012-11-03 19:23:07 -04:00
Phillip Burgess 9f87cf0a55 Progmem attributes fixed 2012-09-17 14:13:10 -07:00
Ladyada 65c27d0bb2 typo fix 2012-05-10 12:24:41 -04:00
Ladyada b807866c62 shield example code 2012-05-10 12:23:48 -04:00
Paint Your Dragon 71d01262c6 Fix for pre-1.0 Arduino IDE 2012-04-11 16:39:01 -07:00
Paint Your Dragon d74280654e Tweaks for Adafruit_GFX 2012-04-09 20:54:35 -07:00
Paint Your Dragon 737712e48e Corrected Adafruit_GFX library integration 2012-04-03 16:52:28 -07:00
Paint Your Dragon 5005a67ca2 Ties into Adafruit_GFX core graphics library 2012-04-02 10:15:31 -07:00
Ladyada 16fb631ad2 #def for header inclusion 2012-03-08 16:41:32 -05:00
Paint Your Dragon 3b1e2def00 Many bug fixes, esp. BMP file and triangle rendering 2012-03-06 11:56:32 -08:00
Paint Your Dragon 05828c7a6b Merge pull request #5 from wa5znu/master
In spitftbitmap example sketch, close SD file after use
2012-02-23 11:15:59 -08:00
wa5znu 0aa5b9bda2 In spitftbitmap example sketch, close the SD card file, so that
people who follow the example and use copy and paste will wind
up with code that works more than once.
2012-02-22 19:32:03 -08:00
Ladyada d1ae2c3f08 Merge branch 'master' of github.com:adafruit/ST7735-Library
Conflicts:
	Adafruit_ST7735.cpp
2012-01-29 13:45:34 -05:00
Ladyada ef8d9d6f71 Readme! 2012-01-29 13:43:18 -05:00
Ladyada 35f4d1cc39 All examples fixed up! :) 2012-01-29 13:40:58 -05:00
Ladyada 000c681728 Updated high speed gfx test 2012-01-29 13:31:40 -05:00
Ladyada 9e57ff9d6a Renamed files to match new naming, updated graphics test and rotation test examples 2012-01-29 13:28:38 -05:00
Ladyada 9f680f921d Changed naming, graphics test 2012-01-29 13:21:52 -05:00
Jeremy Saglimbeni acfadf731a Fixed error in rotation 2012-01-08 23:19:46 -05:00
Jeremy Saglimbeni 9ad388e40a Added print function! 2011-12-21 15:49:32 -05:00
Jeremy Saglimbeni 9cf65b0351 Added print function!
Added print function as well as new shapes and rotation!
2011-12-21 15:42:33 -05:00
Jeremy Saglimbeni 10c2ab8783 Fixed rotation, all working! Updated examples with new shapes. 2011-12-21 00:44:23 -05:00
Ladyada 52a3bff7b9 added test for in-progress rotation support 2011-12-19 14:56:59 -05:00
Ladyada 21a2e77c1f rotation for pixels, lines and fast lines 2011-12-19 14:55:34 -05:00
Jeremy Saglimbeni a5e5ad00eb Added triangles, and roundrects.
Added triangles, filled triangles, rounded rectangles, and filled
rounded rectangles.
2011-12-13 17:12:01 -05:00