Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. j-j
    3. Posts
    J
    • Continue chat with j-j
    • Start new chat with j-j
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by j-j

    • RE: stand-alone TFT_eSPI library on Core2

      I tried to have the Core2 setup added to TFT_eSPI, but the maintainer mistakenly believes that the Core2 drives the backlight at too high of a voltage by default at boot, so users may damage the device.

      From my observation, the display and backlight are unpowered at boot, and explicit commands must be sent to the AXP to power them. If M5Stack's AXP init code is used, there is no problem about over-driving the backlight.

      https://github.com/Bodmer/TFT_eSPI/pull/1815

      posted in Core 2
      J
      j-j
    • RE: stand-alone TFT_eSPI library on Core2

      I was able to use the latest TFT_eSPI as follows:

      • don't use M5Core2 or M5Unified libraries
      • copy AXP192.h and AXP192.cpp from M5Core2 into local project - (I'd like to see M5Stack publish Core2 AXP192 as a separate library.)
      • make a proper TFT_eSPI setup for Core2 - (I'd like to submit it to TFT_eSPI)

      TFT_eSPI setup

      #define ILI9341_DRIVER
      
      #define TFT_SDA_READ
      #define M5STACK
      #define TFT_INVERSION_ON
      
      #define TFT_MISO 38
      #define TFT_MOSI 23
      #define TFT_SCLK 18
      #define TFT_CS    5
      #define TFT_DC   15
      #define TFT_RST  -1
      //#define TFT_BL   -1
      #define TOUCH_CS -1  // (suppress warning)
      
      #define SPI_FREQUENCY  40000000
      #define SPI_READ_FREQUENCY  16000000
      

      example

      #include "AXP192.h"
      #include <TFT_eSPI.h>
      
      AXP192 Axp;
      TFT_eSPI tft;
      
      void setup() {
        Axp.begin();
      
        tft.begin();
        tft.setRotation(1);
        tft.fillScreen(0);
        tft.setCursor(10, 10);
        tft.setTextColor(TFT_WHITE);
        tft.setTextSize(1);
        tft.printf("Display Test!");
        tft.fillRect(100, 100, 50, 50, TFT_BLUE);
        tft.drawCircle(100, 100, 50, TFT_RED);
        tft.fillTriangle(30, 30, 180, 100, 80, 150, random(0xfffe)); 
      }
      
      void loop() {
        delay(1000);
      }
      
      posted in Core 2
      J
      j-j
    • stand-alone TFT_eSPI library on Core2

      I'd like to use a recent version of TFT_eSPI on the Core2 rather than the M5StackCore2 internal version. Has anyone had success with that?

      Using recent versions of TFT_eSPI on the Core Basic was quite easy, but I'm not having luck yet on the Core2.

      posted in Core 2
      J
      j-j
    • M5Stack Basic Core stopped working

      I've been using the Basic Core for a few months without problems. Today I took off the bottom and reattached it, and suddenly the unit no longer works.

      symptom: when bottom is removed and Basic Core is plugged into USB, the 3.3V and 5V signals are very low (less than 1V). The USB device is still visible from my computer, but connection by esptool / M5Burner erase is not successful.

      I tried two different USB cables, two different computers.

      Please advise.

      posted in Cores
      J
      j-j