🤖Have you ever tried Chat.M5Stack.com before asking??😎

Subcategories

  • 5 Topics
    23 Posts
    H
    thank you so much for sharing! this looks cool. I am pretty new to micropython for M5Stack. May I ask which IDE you primarily use to do Micropython programming?
  • M5Dial Example App - Home Assistant, RSS News and OpenWeatherMap

    2
    0 Votes
    2 Posts
    265 Views
    P
    [image: 1772814000502-7e5ce5b2-8d9d-48f9-ae34-7fa5884c1e12-image.png]
  • Tab5 I2C on Arduino works, same code does not work on PlatformIO

    2
    1 Votes
    2 Posts
    794 Views
    T
    Update on this one: Changing to other pins for external I2C makes it work for both Arduino and PlatformIO. So with arduino you can lay external I2C over the internal I2C, but in PlatformIO that does not work. Anybody an idea why not?
  • M5Stack Core/Basic board management package mirror

    1
    0 Votes
    1 Posts
    401 Views
    No one has replied
  • M5Stack CoreS3 SE + COMMU display problem when replugging USB

    4
    2
    0 Votes
    4 Posts
    1k Views
    F
    it was caused by the CS of the LAN Module13.2. switching the jumper to the alternate position fixed the problem... so far these seem to work (CoreS3 SE+COMMU+Lan Module13.2+DIN Base): int cs_pin = 13; // jumper right int rst_pin = 0; // jumper left int int_pin = 10;// jumper left
  • Problems with M5GFX Library

    2
    1 Votes
    2 Posts
    2k Views
    V
    @007jimmey Any update or resolution? Im encountering this on ArduinoDroid...
  • Scan using M5 Unified for IC2 devices for a M5Dial fails

    2
    0 Votes
    2 Posts
    530 Views
    felmueF
    Hello @VashJuan well, it looks to me that none of the listed devices are actually I2C devices. Grove Temp. Sensor: has an analog out pin (the other is NC) which means it directly sends an analog value Grove Wireless Mod: has RX and TX which means it has an UART interface Buzzer: well, my guess would be that it is not I2C either Thanks Felix
  • Tab5 Display Power Save

    arduino
    1
    0 Votes
    1 Posts
    630 Views
    No one has replied
  • 0 Votes
    1 Posts
    615 Views
    No one has replied
  • esp32/rom/rtc.h No such file or directory

    2
    3
    0 Votes
    2 Posts
    702 Views
    S
    @scroggyg The file exists, could the path length be too long? C:\Users\xxxxxxxxxxxxxx\xxxxxxxxxxxxxx\Documents\Arduino\hardware\espressif\esp32\tools\sdk\esp32s3\include\esp_rom\include\esp32\rom
  • Display png from sd with tab5

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Visual Code and M5StamPLC with new M5Unified

    2
    0 Votes
    2 Posts
    2k Views
    G
    Hello, I've gotten a little closer to the problem. First, I performed a full clean in Visual Studio using platformio AND deactivated the entry for M5Unified. The new M5Unified@0.2.8 continued to load: Processing m5stampplc-test (platform: espressif32; board: esp32-s3-devkitc-1; framework: arduino) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Library Manager: Installing git+https://github.com/m5stack/M5StamPLC git version 2.43.0 Cloning into '/Users/myname/.platformio/.cache/tmp/pkg-installing-pmi7_zhl'... remote: Enumerating objects: 70, done. remote: Counting objects: 100% (70/70), done. remote: Compressing objects: 100% (57/57), done. remote: Total 70 (delta 4), reused 29 (delta 1), pack-reused 0 (from 0) Receiving objects: 100% (70/70), 80.39 KiB | 2.77 MiB/s, done. Resolving deltas: 100% (4/4), done. Library Manager: M5StamPLC@1.0.0+sha.1021da5 has been installed! Library Manager: Resolving dependencies... Library Manager: Installing M5Unified @ * Unpacking [####################################] 100% Library Manager: M5Unified@0.2.8 has been installed! Library Manager: Resolving dependencies... Library Manager: Installing M5GFX @ >=0.2.10 Unpacking [####################################] 100% Library Manager: M5GFX@0.2.10 has been installed! A look at the library.json revealed the challenge in my opinion: dependencies to "M5Unified" - No specific version of M5Unified, always the latest! "name": "M5StamPLC", "description": "Library for M5StamPLC", "keywords": "M5Stack,M5StamPLC", "authors": { "name": "M5Stack" }, "repository": { "type": "git", "url": "https://github.com/M5Stack/M5StamPLC.git" }, "dependencies": { "M5Unified": "*", "M5GFX": "*" }, "version": "1.0.0", "frameworks": "arduino", "platforms": "espressif32" } Before I copy and adapt everything locally, it would certainly be helpful to adapt this. In my opinion, there must be an M5StamPLC version 1.0.1 with the new features, and the old version M5StamPLC 1.0.0 must use M5Unified version 0.2.7. Who (from M5Stack) can help me?
  • M5TAB5

    2
    0 Votes
    2 Posts
    1k Views
    felmueF
    Hello @Powersoft please have a look at my M5Tab5 library (unofficial) here. Thanks Felix
  • ESP-Now-Serial-Bridge on M5Atom S3

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • M5StamPLC can't connect in Arduino IDE

    2
    0 Votes
    2 Posts
    1k Views
    T
    I solved it. My usb c cable was junk.
  • Visual Code and M5StamPLC

    3
    0 Votes
    3 Posts
    2k Views
    G
    Hello @felmue, yes, I did, but I didn't see this part: [env:m5stack-stamp-s3] platform = espressif32 board = esp32-s3-devkitc-1 framework = arduino upload_speed = 1500000 build_flags = -DESP32S3 -DCORE_DEBUG_LEVEL=5 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 lib_deps = M5StamPLC=https://github.com/m5stack/M5StamPLC M5Unified=https://github.com/m5stack/M5Unified Thanks, I will try it.
  • I2c failure with MPU6050 component

    arduino
    2
    0 Votes
    2 Posts
    2k Views
    G
    More information If I use M5Unified.h and then a begin of M5.begin(), the data is all zeros. If I take out the begin, then the data is correct. There must be something in the M5Unified that is restarting the Wire or taking over the I2C bus. How can I correct this. It is a show stopper. If I can find a solution, then I will have to discard the M5Stack basic and go to a regular ESP32.
  • M5StamPLC and the Backlight

    5
    0 Votes
    5 Posts
    3k Views
    G
    Hello @felmue, thank you very much for your quick support, it really helped me. It didn't work in my "big" program, but I wrote a small test program, and it fully meets the requirements: #include <M5StamPLC.h> void my_set_backlight(bool o) { PI4IOE5V6408_Class p; p.setDirection(7, true); // false input, true output p.digitalWrite(7, !o); // false on, true off } void printAndWait(String s) { M5StamPLC.Display.println(" " + s); delay(4000); } void setup() { Serial.begin(115200); M5StamPLC.begin(); M5StamPLC.Display.setTextSize(3); } void loop() { M5StamPLC.Display.fillScreen(TFT_BLACK); M5StamPLC.Display.setCursor(0, 10); printAndWait("Test 1"); printAndWait("Test 2"); my_set_backlight(false); printAndWait("Test 3"); my_set_backlight(true); printAndWait("Test 4"); } You can see it not only in the dark screen, but also in the power consumption, which is reduced by about 20%. I suspect that in my "big" program, someone is turning the lights back on (and working against me). Best regards, Uwe
  • M5StickC Plus2 crash when Button State call

    2
    0 Votes
    2 Posts
    2k Views
    W
    @restart-au said in M5StickC Plus2 crash when Button State call: StickCP2.Display.printf("%d \%", vol); I don't think that backslash-percent means anything special in printf(). You probably want %% instead to get a literal percent sign in the output. I don't know what happens with what you've used, but a crash would not surprise me.
  • A fatal error occurred: MD5 of file does not match data in flash!

    8
    0 Votes
    8 Posts
    37k Views
    H
    This error usually means the uploaded firmware didn't flash correctly. Try these steps: Use a different USB cable and port. Press the reset button on your M5Stack before uploading. Make sure you have the latest Arduino M5Stack libraries and board definitions. Try erasing the flash completely using esptool (esptool.py erase_flash). Reboot your PC and M5Stack. If it persists, it could be a hardware fault, but most often it’s a flashing or connection issue.
  • core2 not working

    4
    0 Votes
    4 Posts
    2k Views
    ajb2k3A
    @jbruggem Your first post shows that you haven't configured Arduino to configure code for the M5Stack Core2 which uses a different core and pin config to a base esp32. The example you are using is not an M5Stack demo, Arduino is missing Libraries. All these errors point back to not have the M5Stack Core2 board type selected.