From 53a9c9aa3a1777cda67f804e8d548f037e5ffc1f Mon Sep 17 00:00:00 2001 From: David Koch Date: Wed, 6 Jun 2018 00:51:16 +0200 Subject: [PATCH] Changed Adafruit ST7735 constructor in bluetft.h to match library --- Esp32_radio/bluetft.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Esp32_radio/bluetft.h b/Esp32_radio/bluetft.h index 48a35ce..5585173 100644 --- a/Esp32_radio/bluetft.h +++ b/Esp32_radio/bluetft.h @@ -50,7 +50,8 @@ Adafruit_ST7735* tft = NULL ; // For instan bool dsp_begin() { tft = new Adafruit_ST7735 ( ini_block.tft_cs_pin, - ini_block.tft_dc_pin ) ; // Create an instant for TFT + ini_block.tft_dc_pin, + -1 ) ; // Create an instant for TFT, reset pin not connected // Uncomment one of the following initR lines for ST7735R displays //tft->initR ( INITR_GREENTAB ) ; // Init TFT interface //tft->initR ( INITR_REDTAB ) ; // Init TFT interface @@ -61,4 +62,4 @@ bool dsp_begin() // Uncomment the next line for ST7735B displays //tft_initB() ; return ( tft != NULL ) ; -} +}