Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
aa4a32bc
Unverified
Commit
aa4a32bc
authored
Nov 09, 2020
by
Bodmer
Committed by
GitHub
Nov 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Animated_Eyes_1.ino
parent
24b0eca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
examples/Generic/Animated_Eyes_1/Animated_Eyes_1.ino
examples/Generic/Animated_Eyes_1/Animated_Eyes_1.ino
+3
-12
No files found.
examples/Generic/Animated_Eyes_1/Animated_Eyes_1.ino
View file @
aa4a32bc
...
@@ -3,15 +3,6 @@
...
@@ -3,15 +3,6 @@
// one (240x320 minimum) TFT display, showing 2 eyes. See example
// one (240x320 minimum) TFT display, showing 2 eyes. See example
// Animated_Eyes_2 for a dual 128x128 TFT display configued sketch.
// Animated_Eyes_2 for a dual 128x128 TFT display configued sketch.
// The number of displays and chip selects used are defined in the
// config.h tab. The display count can be set to 1. If using one
// TFT and the chip select for that display is already defined in
// the TFT_eSPI library then change the chip select pins to -1 in the
// "config.h" tab.
// The wiring for 2 TFT displays to an ESP32 is described in the
// "wiring" tab of this sketch.
// Configuration settings for the eye, eye style, display count,
// Configuration settings for the eye, eye style, display count,
// chip selects and x offsets can be defined in the sketch "config.h" tab.
// chip selects and x offsets can be defined in the sketch "config.h" tab.
...
@@ -33,7 +24,7 @@
...
@@ -33,7 +24,7 @@
// DMA can be used with STM32 and ESP32 processors when the interface
// DMA can be used with STM32 and ESP32 processors when the interface
// is SPI, uncomment the next line:
// is SPI, uncomment the next line:
#define USE_DMA
//
#define USE_DMA
// Load TFT driver library
// Load TFT driver library
#include <SPI.h>
#include <SPI.h>
...
@@ -44,9 +35,9 @@ TFT_eSPI tft; // A single instance is used for 1 or 2 displays
...
@@ -44,9 +35,9 @@ TFT_eSPI tft; // A single instance is used for 1 or 2 displays
#define BUFFER_SIZE 1024 // 128 to 1024 seems optimum
#define BUFFER_SIZE 1024 // 128 to 1024 seems optimum
#ifdef USE_DMA
#ifdef USE_DMA
#define BUFFERS 2 // 2 toggle buffers with DMA
#define BUFFERS 2 // 2 toggle buffers with DMA
#else
#else
#define BUFFERS 1 // 1 buffer for no DMA
#define BUFFERS 1 // 1 buffer for no DMA
#endif
#endif
uint16_t
pbuffer
[
BUFFERS
][
BUFFER_SIZE
];
// Pixel rendering buffer
uint16_t
pbuffer
[
BUFFERS
][
BUFFER_SIZE
];
// Pixel rendering buffer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment