Skip to content

Commit

Permalink
Major update
Browse files Browse the repository at this point in the history
  SPI driver optimized, DMA functionality improved
  Low lewel display SPI functions optimized for speed
  16-bit color mode removed
  Improved BMP decoding, up to 2x higher speed
  All functions optimized to use DMA transfer where possible
  Some bugs fixed
  Some functions added
  • Loading branch information
loboris committed May 29, 2017
1 parent 9d5e3e7 commit f69d163
Show file tree
Hide file tree
Showing 28 changed files with 2,122 additions and 1,410 deletions.
Binary file added Documents/ER-TFTM035-6_Datasheet.pdf
Binary file not shown.
Binary file added Documents/ER-TFTM035-6_Interfacing.pdf
Binary file not shown.
Binary file not shown.
Binary file added Documents/ILI9341.pdf
Binary file not shown.
Binary file added Documents/ILI9488.pdf
Binary file not shown.
Binary file added Documents/ST7789S.pdf
Binary file not shown.
Binary file added Documents/XPT2046.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@

PROJECT_NAME := tft_demo

EXTRA_CFLAGS += --save-temps

include $(IDF_PATH)/make/project.mk

14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#### Features

* Full support for **ILI9341** & **ILI9488** based TFT modules in 4-wire SPI mode. Support for other controllers will be added later
* **18-bit (RGB)** color mode (*default*) or **16-bit packed RGB565** color mode (only on ILI9341)
* SPI displays oriented SPI driver library based on *spi-master* driver
* Combined **DMA SPI** transfer mode (on some functions) and **direct SPI** to improve speed
* **Grayscale mode** can be selected
* **18-bit (RGB)** color mode used
* **SPI displays oriented SPI driver library** based on *spi-master* driver
* Combined **DMA SPI** transfer mode and **direct SPI** for maximal speed
* **Grayscale mode** can be selected during runtime which converts all colors to gray scale
* SPI speeds up to **40 MHz** are tested and works without problems
* **Demo application** included which demonstrates most of the library features

Expand All @@ -28,7 +28,7 @@
* **TFT_drawArc** Draw circle arc on screen, from ~ to given angles, with given thickness. Can be outlined with different color
* **TFT_drawPolygon** Draw poligon on screen with given number of sides (3~60). Can be outlined with different color and rotated by given angle.
* **Fonts**:
* **fixed** width and proportional fonts are supported; 7 fonts embeded
* **fixed** width and proportional fonts are supported; 8 fonts embeded
* unlimited number of **fonts from file**
* **7-segment vector font** with variable width/height is included (only numbers and few characters)
* Proportional fonts can be used in fixed width mode.
Expand All @@ -37,6 +37,7 @@
* **TFT_getfontsize** Returns current font height & width in pixels.
* **TFT_getfontheight** Returns current font height in pixels.
* **set_7seg_font_atrib** Set atributes for 7 segment vector font
* **getFontCharacters** Get all font's characters to buffer
* **String write function**:
* **TFT_print** Write text to display.
* Strings can be printed at **any angle**. Rotation of the displayed text depends on *font_ratate* variable (0~360)
Expand All @@ -52,6 +53,7 @@
* *BOTTOM* bottom justifies the text
* *LASTY* continues from last Y position; offset can be used: *LASTY+n*
* **TFT_getStringWidth** Returns the string width in pixels based on current font characteristics. Useful for positioning strings on the screen.
* **TFT_clearStringRect** Fills the rectangle occupied by string with current background color
* **Images**:
* **TFT_jpg_image** Decodes and displays JPG images
* Limits:
Expand Down Expand Up @@ -127,7 +129,7 @@

Full functions **syntax and descriptions** can be found in *tft.h* and *tftspi.h* files.

Full **demo application**, well documented, is included, please **analyze it** to learn how to use the library functions.
Full **demo application**, well documented, is included, please **analyze it** to learn how to use the library functions.

---

Expand Down
4 changes: 2 additions & 2 deletions components/mkspiffs/src/spiffs/spiffs_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ typedef unsigned char u8_t;
// Lower value generates more read/writes. No meaning having it bigger
// than logical page size.
#ifndef SPIFFS_COPY_BUFFER_STACK
#define SPIFFS_COPY_BUFFER_STACK (64)
#define SPIFFS_COPY_BUFFER_STACK (256)
#endif

// Enable this to have an identifiable spiffs filesystem. This will look for
Expand Down Expand Up @@ -291,7 +291,7 @@ typedef unsigned char u8_t;
// value for the specific access patterns of the application. However, it must
// be between 1 (no gain for hitting a cached entry often) and 255.
#ifndef SPIFFS_TEMPORAL_CACHE_HIT_SCORE
#define SPIFFS_TEMPORAL_CACHE_HIT_SCORE 4
#define SPIFFS_TEMPORAL_CACHE_HIT_SCORE 8
#endif

// Enable to be able to map object indices to memory.
Expand Down
Loading

0 comments on commit f69d163

Please sign in to comment.