you can see examples
#include <M5AtomS3.h> not #include "M5Stack.h"
F
Save
Saving
flypeek
@flypeek
4
Reputation
21
Posts
2473
Profile views
0
Followers
6
Following
Posts made by flypeek
-
RE: Error compiling examples
-
RE: video stream (computer desktop) to m5stickc plus
https://github.com/Bodmer/TFT_eSPI#tips
edit User_Setup.h or renameSection 1. Call up the right driver file and any options for it
// Only define one driver, the other ones must be commented out //#define ILI9341_DRIVER // Generic driver for common displays #define ST7789_2_DRIVER // Minimal configuration option, define additional parameters below for this display
// #define M5STACK // For ST7789, ST7735, ILI9163 and GC9A01 ONLY, define the pixel width and height in portrait orientation // #define TFT_WIDTH 80 #define TFT_WIDTH 135 //128->135 // #define TFT_WIDTH 172 // ST7789 172 x 320 // #define TFT_WIDTH 240 // ST7789 240 x 240 and 240 x 320 // #define TFT_HEIGHT 160 // #define TFT_HEIGHT 128 #define TFT_HEIGHT 240 // ST7789 240 x 240 // #define TFT_HEIGHT 320 // ST7789 240 x 320 // #define TFT_HEIGHT 240 // GC9A01 240 x 240
Section 2. Define the pins that are used to interface with the display here
// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation //#define TFT_CS PIN_D8 // add // //#define TFT_DC PIN_D3 // add // //#define TFT_RST PIN_D4 //add // // For ESP32 Dev board (only tested with GC9A01 display) // The hardware SPI can be mapped to any pins #define TFT_MOSI 15 // In some display driver board, it might be written as "SDA" and so on. #define TFT_SCLK 13 #define TFT_CS 5 // Chip select control pin #define TFT_DC 23 // Data Command control pin #define TFT_RST 18 // Reset pin (could connect to Arduino RESET pin) //#define TFT_BL 22 // LED back-light
Section 4. Other options
// #define SPI_FREQUENCY 27000000 #define SPI_FREQUENCY 40000000 //from Setup135_ST7789.h
-
RE: looking for an example of graphical representation of sensor values
https://shop.m5stack.com/pages/download
choose M5Burner downloadThe picture is a factory test example(Core2 factory test firmware)