From 634160a731440552d28e1c47eaedd47a186ed0b5 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 27 May 2022 11:22:47 +0100 Subject: [PATCH] Avoid passing buffer into bool parameter --- examples/pico_display/demo.cpp | 4 +--- examples/pico_display_2/demo.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/pico_display/demo.cpp b/examples/pico_display/demo.cpp index 73e7b3af..85c31082 100644 --- a/examples/pico_display/demo.cpp +++ b/examples/pico_display/demo.cpp @@ -11,10 +11,8 @@ using namespace pimoroni; const bool ROTATE_180 = false; -uint16_t buffer[PicoDisplay::WIDTH * PicoDisplay::HEIGHT]; - // Swap WIDTH and HEIGHT to rotate 90 degrees -ST7789Generic pico_display(PicoDisplay::WIDTH, PicoDisplay::HEIGHT, buffer); +ST7789Generic pico_display(PicoDisplay::WIDTH, PicoDisplay::HEIGHT); RGBLED led(PicoDisplay::LED_R, PicoDisplay::LED_G, PicoDisplay::LED_B); diff --git a/examples/pico_display_2/demo.cpp b/examples/pico_display_2/demo.cpp index 62d694f1..f1a06a38 100644 --- a/examples/pico_display_2/demo.cpp +++ b/examples/pico_display_2/demo.cpp @@ -12,10 +12,8 @@ using namespace pimoroni; const bool ROTATE_180 = false; -uint16_t buffer[PicoDisplay2::WIDTH * PicoDisplay2::HEIGHT]; - // Swap WIDTH and HEIGHT to rotate 90 degrees -ST7789Generic pico_display(PicoDisplay2::WIDTH, PicoDisplay2::HEIGHT, buffer); +ST7789Generic pico_display(240, 240); RGBLED led(PicoDisplay2::LED_R, PicoDisplay2::LED_G, PicoDisplay2::LED_B);