Skip to content

Commit 29b1246

Browse files
Fix Fri3dBadge_Adafruit_ST7789
1 parent ca7d5ce commit 29b1246

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

libraries/Fri3dBadge/examples/Adafruit_ST7789/graphicstest_st7789/graphicstest_st7789.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
**************************************************************************/
3131

3232
#include <Adafruit_GFX.h> // Core graphics library
33-
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
3433
#include <SPI.h>
34+
#include <Fri3dBadge_Adafruit_ST7789.h>
3535

3636
#if defined(ARDUINO_FEATHER_ESP32) // Feather Huzzah32
3737
#define TFT_CS 14
@@ -56,7 +56,7 @@
5656
// SCLK = pin 13. This is the fastest mode of operation and is required if
5757
// using the breakout board's microSD card.
5858

59-
Fri3dBadge_TFT tft = Fri3dBadge_TFT();
59+
Fri3dBadge_Adafruit_ST7789 tft = Fri3dBadge_Adafruit_ST7789();
6060

6161
// OPTION 2 lets you interface the display using ANY TWO or THREE PINS,
6262
// tradeoff being that performance is not as fast as hardware SPI above.
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#include <Fri3dBadge_Adafruit_ST7789.h>
22

3-
Fri3dBadge_TFT::Fri3dBadge_TFT() : Adafruit_ST7789(X_LCD_CS, X_LCD_DC, X_LCD_MOSI, X_LCD_CLK, X_LCD_RST);
3+
Fri3dBadge_Adafruit_ST7789::Fri3dBadge_Adafruit_ST7789() : Adafruit_ST7789(X_LCD_CS, X_LCD_DC, X_LCD_MOSI, X_LCD_CLK, X_LCD_RST);
44
{
55

66
}
77

8-
void Fri3dBadge_TFT::begin(uint32_t freq)
8+
void Fri3dBadge_Adafruit_ST7789::begin(uint32_t freq)
99
{
1010
// Call the parent class's begin method to initialize the display
1111
Adafruit_ST7789::begin(freq);
12-
13-
1412
setRotation(1);
1513
}

0 commit comments

Comments
 (0)