Check if the wiring is correct
new link
https://lang-ship.com/reference/unofficial/M5StickC/Device/SPI/SD/
Check if the wiring is correct
new link
https://lang-ship.com/reference/unofficial/M5StickC/Device/SPI/SD/
no M5-Core to try
https://github.com/m5stack/M5Tough/blob/master/src/M5Display.h
class M5Display : public TFT_eSPI {
public:
static M5Display* instance;
M5Display();
void begin();
void sleep();
void wakeup();
void setBrightness(uint8_t brightness);
void clearDisplay(uint32_t color=ILI9341_BLACK) { fillScreen(color); }
void clear(uint32_t color=ILI9341_BLACK) { fillScreen(color); }
void display() {}
so you can try this
#include <M5Display.h>
M5.Lcd.setBrightness(value); //uint8_t Brightness (0: Off - 255:Full)
1.M5Stack.Lcd use Brightness (0: Off - 255:Full)
https://github.com/m5stack/m5-docs/blob/master/docs/en/api/lcd.md#setbrightness
https://github.com/Bodmer/TFT_eSPI#tips
or 2.edit User_Setup.h or rename
// ########################################################
// Section 2. Define the pins that are used to interface with the display here
//#######################################################
// If a backlight control signal is available then define the TFT_BL pin in Section 2
// below. The backlight will be turned ON when tft.begin() is called, but the library
// needs to know if the LEDs are ON with the pin HIGH or LOW. If the LEDs are to be
// driven with a PWM signal or turned OFF/ON then this must be handled by the user
// sketch. e.g. with digitalWrite(TFT_BL, LOW);
#define TFT_BL 32 // LED back-light control pin
#define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)
https://github.com/Bodmer/TFT_eSPI
compiles to 293KB
#define SerialMon Serial
#include <TFT_eSPI.h>
TFT_eSPI Tft = TFT_eSPI();
void debug(String msg) {
SerialMon.print(msg);
Tft.print(msg);
}
void debugln(String msg) {
SerialMon.println(msg);
Tft.println(msg);
}
void setup() {
SerialMon.begin(115200);
Tft.init();
Tft.fillScreen(TFT_BLACK);
Tft.setTextSize(3);
Tft.setTextColor(TFT_WHITE, TFT_BLACK);
debugln(F("If found, call"));
debugln(F("xxxxxxxx"));
debugln(F("xxxxxxxxxxxxx"));
debugln(F(""));
debugln(F("or return to"));
debugln(F("xxxxxxxxxx"));
debugln(F("xxxxxxxx"));
debugln(F("xxxxxxxxxxxx"));
debugln(F("xxxxxxxxxxxx"));
}
void loop() {
}
you can see examples
#include <M5AtomS3.h> not #include "M5Stack.h"