aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-08-14 10:21:31 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-08-14 10:21:31 +0100
commitb504f6292de8a07f155d42f650e535ef901754c6 (patch)
treee208733aec439bf4bebb4fb07a3a30682dc1999b /examples
parentd48542d599a52b2a4c91b1462ce98f9e74b6f9da (diff)
Minor update
Diffstat (limited to 'examples')
-rw-r--r--examples/AnimatedGIFPanel/AnimatedGIFPanel.ino4
-rw-r--r--examples/BitmapIcons/BitmapIcons.ino5
-rw-r--r--examples/BufferSwap/BufferSwap.ino3
-rw-r--r--examples/testshapes_32x64/testshapes_32x64.ino2
4 files changed, 9 insertions, 5 deletions
diff --git a/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino b/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino
index d4db9bf..8f4abb1 100644
--- a/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino
+++ b/examples/AnimatedGIFPanel/AnimatedGIFPanel.ino
@@ -201,10 +201,14 @@ void setup() {
Serial.println("SPIFFS Mount Failed");
}
+ /* setPanelBrightness should be called before .begin() */
+ /* setMinRefreshRate must be called before .begin() */
dma_display.setPanelBrightness(32);
dma_display.setMinRefreshRate(200);
dma_display.begin();
+
+ /* all other pixel drawing functions can only be called after .begin() */
dma_display.fillScreen(dma_display.color565(0, 0, 0));
gif.begin(LITTLE_ENDIAN_PIXELS);
diff --git a/examples/BitmapIcons/BitmapIcons.ino b/examples/BitmapIcons/BitmapIcons.ino
index a2f2331..72328c5 100644
--- a/examples/BitmapIcons/BitmapIcons.ino
+++ b/examples/BitmapIcons/BitmapIcons.ino
@@ -133,9 +133,8 @@ void setup() {
/************** DISPLAY **************/
Sprintln("...Starting Display");
- display.setPanelBrightness(48);
- display.begin(R1_PIN, G1_PIN, B1_PIN, R2_PIN, G2_PIN, B2_PIN, A_PIN, B_PIN, C_PIN, D_PIN, E_PIN, LAT_PIN, OE_PIN, CLK_PIN ); // setup the LED matrix
-
+ display.begin(R1_PIN, G1_PIN, B1_PIN, R2_PIN, G2_PIN, B2_PIN, A_PIN, B_PIN, C_PIN, D_PIN, E_PIN, LAT_PIN, OE_PIN, CLK_PIN );
+
display.fillScreen(display.color444(0, 1, 0));
// Fade a Red Wifi Logo In
diff --git a/examples/BufferSwap/BufferSwap.ino b/examples/BufferSwap/BufferSwap.ino
index 7b0e383..a797937 100644
--- a/examples/BufferSwap/BufferSwap.ino
+++ b/examples/BufferSwap/BufferSwap.ino
@@ -14,7 +14,8 @@ void setup()
delay(1000); Serial.begin(115200); delay(200);
Serial.println("...Starting Display");
- display.begin(); // setup the display with no double buffering
+
+ display.begin(); // setup display with pins as per defined in the library
display.setTextColor(display.color565(128, 128, 128));
diff --git a/examples/testshapes_32x64/testshapes_32x64.ino b/examples/testshapes_32x64/testshapes_32x64.ino
index b09bfad..0960942 100644
--- a/examples/testshapes_32x64/testshapes_32x64.ino
+++ b/examples/testshapes_32x64/testshapes_32x64.ino
@@ -15,7 +15,7 @@ void setup() {
Serial.println(" HELLO !");
Serial.println("*****************************************************");
- dma_display.begin();
+ dma_display.begin(); // use default pins
// draw a pixel in solid white
dma_display.drawPixel(0, 0, dma_display.color444(15, 15, 15));