Merge pull request #376 from pimoroni/patch-pico-display-demos

Pico Display & Pico Display 2 Demos: Avoid passing buffer into bool parameter
This commit is contained in:
Philip Howard 2022-05-27 11:30:54 +01:00 committed by GitHub
commit 6b992603f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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);