Use cad plane to measure dimensions is 12 mm
Posts made by flypeek
-
RE: my M5StickC Plus can't read micro SD
Check if the wiring is correct
new link
https://lang-ship.com/reference/unofficial/M5StickC/Device/SPI/SD/
-
RE: M5-TOUGH / unable to change display brightness
no M5-Core to try
https://github.com/m5stack/M5Tough/blob/master/src/M5Display.hclass 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)
-
RE: How to make a smaller .bin?
1.M5Stack.Lcd use Brightness (0: Off - 255:Full)
https://github.com/m5stack/m5-docs/blob/master/docs/en/api/lcd.md#setbrightnesshttps://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)
-
RE: How to make a smaller .bin?
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() { }
-
RE: Error compiling examples
you can see examples
#include <M5AtomS3.h> not #include "M5Stack.h" -
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)