Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. timattrn
    T
    • Continue chat with timattrn
    • Start new chat with timattrn
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    timattrn

    @timattrn

    0
    Reputation
    4
    Posts
    322
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    timattrn Follow

    Posts made by timattrn

    • RE: M5Paper Shutdown() / Deep Sleep / Wakeup

      @casascius How did you even get that far? I have made a project using the new Unified library, and I can not even find the shutdown() functions at all.
      EDIT: with the unified library, I am simply trying:

      M5.Power.timerSleep(600);

      Even when on USB power, this is 'caught', and so far wakeup is reliable.

      posted in Cores
      T
      timattrn
    • VSCode + Platform IO M5 Paper (EPD) board type

      There is no forum for VSCode + PIO yet it is heavily used. Many of the M5 github examples obviously use it (at least for the Paper). So I post this here, despite it not being an Arduino IDE question.

      In those github examples, the platformio.ini has this content (partial extract)
      from https://github.com/m5stack/M5EPD_Calculator

      [env:m5stack-fire]
      platform = espressif32
      board = m5stack-fire

      This project builds and runs fine.
      But I am surprised at the board used. In Arduino IDE, there is a specific M5Stack board for the Paper.

      In following up with the PlatformIO community support forum, I got very helpful support from someone, who said this:

      "I see, indeed. You’re using the board package as instructed from m5-docs, which is using the Arduino core https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/m5stack-2.0.3.zip. PlatformIO only supports the official Arduino-ESP32, which does not have the M5Stack-Paper (but other M5Stack boards), see here. Seems like the M5Stack people just fork the Arduino-ESP32 core, add their own boards, and don’t merge immediately back, leaving regular core users in the dark."

      but this user then discovered: "However, looking at the core download, it nicely has a package.json, so it can be used in PlatformIO, given the right board definition (already created in Create m5stack-paper.json by TomG736 · Pull Request #669 · platformio/platform-espressif32 · GitHub)."

      https://community.platformio.org/t/m5stack-paper-help-helloworld-does-not-execute-default-platform-ini-seems-broken-i-have-a-working-guess/28186/6

      I wondered about the consequence of using

      board = m5stack-fire

      his reply was: "Board board = .. selection influences a great number of things, that is, ESP32 type, flash size and the Arduino variant e.g. The m5stack_fire and and m5stack_paper variant folders each have their pins_arduino.h in them, and they might have different things (e.g., default pins for attached devices or SPI bus etc.) in them, leading to incompatibilities later."

      So, is using

      board = m5stack-fire

      with VSCode/PIO ok?

      posted in Arduino
      T
      timattrn
    • RE: arduino rts reset does not reset M5 Paper

      this issue fixed itself and has not reoccurred. I might have had the libraries or board set up incorrectly. It now works fine in Arduino IDE & VSCode + PlatformIO

      posted in Arduino
      T
      timattrn
    • arduino rts reset does not reset M5 Paper

      On Fedora I have arduino 1.8.19. I have installed libraries etc as per the instructions. After compiling and uploading a sketch from the examples (such as factory test, or hello world), the transfer succeeeds (Hash of data verified). Then comes Hard resetting via RTS pin.
      But the reset does not happen.
      The M5 Burner app however does work.

      posted in Arduino
      T
      timattrn