ESP-WROVER-KIT LCD Code does not run!!!

ats3788
Posts: 27
Joined: Thu Feb 01, 2018 10:12 am

ESP-WROVER-KIT LCD Code does not run!!!

Postby ats3788 » Mon Oct 29, 2018 4:19 pm

Hello ESP32 Community

Can someone tell me why this code does not run

Code: Select all



#include "SPI.h"
#include "Adafruit_GFX.h"
#include "WROVER_KIT_LCD.h"

#define min(X, Y) (((X) < (Y)) ? (X) : (Y))

WROVER_KIT_LCD tft;

void setup() {
  Serial.begin(115200);
 
  tft.begin();
  tft.setRotation(1);

  uint8_t x = 0;
  uint32_t id = tft.readId();
  if(id){
      Serial.println("======= ILI9341 ST7789V Display Test ========");
  } else {
      Serial.println("======= ILI9341 ILI9341 Display Test ========");
  }
  Serial.println("============================================");
  Serial.printf("Display ID:      0x%06X\n", id);

  x = tft.readcommand8(WROVER_RDDST);
  Serial.print("Status:          0x"); Serial.println(x, HEX);
  x = tft.readcommand8(WROVER_RDDPM);
  Serial.print("Power Mode:      0x"); Serial.println(x, HEX);
  x = tft.readcommand8(WROVER_RDDMADCTL);
  Serial.print("MADCTL Mode:     0x"); Serial.println(x, HEX);
  x = tft.readcommand8(WROVER_RDDCOLMOD);
  Serial.print("Pixel Format:    0x"); Serial.println(x, HEX);
  x = tft.readcommand8(WROVER_RDDIM);
  Serial.print("Image Format:    0x"); Serial.println(x, HEX);
  x = tft.readcommand8(WROVER_RDDSDR);
  Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX);
  
 
  Serial.println(F("Done!"));
  tft.fillScreen(ILI9341_ALICEBLUE);
  tft.setTextColor(ILI9341_BLUEVIOLET);

}

void loop(void) {
	tft.print("*");
    delay(1000);
}

That is all what I get
  • Opening port
    Port open
    read err, 1000
    ets_main.c 371
    ets Jun 8 2016 00:22:57

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:952
    load:0x40078000,len:6084
    load:0x40080000,len:7936
    entry 0x40080310
Power Supply just the USB

ESP_Sprite
Posts: 9725
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP-WROVER-KIT LCD Code does not run!!!

Postby ESP_Sprite » Tue Oct 30, 2018 4:14 am

Moved to Arduino subforum.

Who is online

Users browsing this forum: No registered users and 56 guests