Skip to content

Commit d896db0

Browse files
remove args form tft.init in graphicstest_st7789.ino
1 parent 731a3f4 commit d896db0

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,16 @@
3333
#include <SPI.h>
3434
#include <Fri3dBadge_Adafruit_ST7789.h>
3535

36-
// OPTION 1 (recommended) is to use the HARDWARE SPI pins, which are unique
37-
// to each board and not reassignable. For Arduino Uno: MOSI = pin 11 and
38-
// SCLK = pin 13. This is the fastest mode of operation and is required if
39-
// using the breakout board's microSD card.
40-
4136
Fri3dBadge_Adafruit_ST7789 tft = Fri3dBadge_Adafruit_ST7789();
4237

43-
// OPTION 2 lets you interface the display using ANY TWO or THREE PINS,
44-
// tradeoff being that performance is not as fast as hardware SPI above.
45-
//#define TFT_MOSI 11 // Data out
46-
//#define TFT_SCLK 13 // Clock out
47-
48-
//Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
49-
50-
5138
float p = 3.1415926;
5239

5340
void setup(void) {
5441
Serial.begin(9600);
5542
Serial.print(F("Hello! ST77xx TFT Test"));
5643

5744
// Use this initializer (uncomment) if using a 1.3" or 1.54" 240x240 TFT:
58-
tft.init(X_LCD_HEIGHT, X_LCD_WIDTH); // Init ST7789 240x240
45+
tft.init(); // Init ST7789 240x240
5946

6047
// OR use this initializer (uncomment) if using a 1.69" 280x240 TFT:
6148
//tft.init(240, 280); // Init ST7789 280x240

0 commit comments

Comments
 (0)