Navigation

    M5Stack Community

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

    Posts made by TitiMoby

    • RE: ENV II Unit Support for UI Flow (device M5StickC)

      And the answer was to learn how to handle Hat with UIFlow 🤣
      If someone tries to use ENV 2 demo, beware that it references the ENV hat version one.
      You need to remove it, add the ENV 2 hat, the replace with the new module functions the different calls.

      If someone knows how to do it, I can report the documentation error.

      posted in UIFlow
      TitiMoby
    • RE: ENV II Unit Support for UI Flow (device M5StickC)

      I just spotted your topic and I'm wondering how you solved the issue.
      I'm running the current 1.7.2 UIFlow and firmware but when opening ENV II demo from the documentation page it does not recognize the ENV II Hat and error message appear about not connected hat.

      As I also use micropython, I inspected modules and saw that there was a hat.ENV2.
      So I just had to modify one line of code.

      But I did not figure out how to do it from UIFLow blocks.
      What is the solution?

      posted in UIFlow
      TitiMoby
    • RE: Where is the WiFi config held?

      On my core gray, I have a specific code to write my config file myself.
      That way, I always know how to read it back.
      My experiments are available on Github and I used it in several of my videos, for exemple this one on writing and reading this config file.

      It’s in french, but I think the code is simple enough.
      If it’s not the case, I can answer questions.

      posted in Micropython
      TitiMoby
    • RE: [M5Paper] UiFlow support

      As this is not my first M5 board, I think I was in App mode. But as the main source of errors is often between the chair and the keyboard, I'll focus my attention on this point 😉

      posted in Features Wish List
      TitiMoby
    • RE: [M5Paper] UiFlow support

      So no stable solution for now, that’s sad.
      It’s a bit frustrating to have some micropython working but not the full experience.
      At some point, that could be better to switch to hardware that runs CircuitPython, less struggle.

      posted in Features Wish List
      TitiMoby
    • M5Paper SDCard access

      Is there a way to access M5Paper SD card with MicroPython?

      There is no uos module, but os has mount function.
      I tried:

      import os
      os.mount(machine.SDCard(), '/sd')
      

      which result in:

      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      OSError: 16
      
      posted in Micropython
      TitiMoby
    • RE: [M5Paper] UiFlow support

      Does anyone have ideas to put MicroPython libraries on the M5Paper?

      posted in Features Wish List
      TitiMoby
    • RE: [M5Paper] UiFlow support

      That's very nice to be able to use UIFlow with M5Paper, thanks. 🥰

      This also open the door to micropython.
      I tried it and it works in UIflow.

      Now, I'm trying to figure out how to add libraries.
      With M5 core, I use either thonny or rshell.
      But I could not connect to M5Paper with those.

      The only tool that worked was Mu editor, but only to see the REPL. Could not access files.

      Is there a trick to upload files on M5Paper?

      posted in Features Wish List
      TitiMoby
    • RE: M5Paper and images drawing

      As the weather looks really rainy this week end, I'll have plenty things to try.
      Thanks all, I'll keep posted my progress.

      posted in Cores
      TitiMoby
    • RE: M5Paper and images drawing

      I did not find definition of supported BMP file format.
      Do someone knows this?

      posted in Cores
      TitiMoby
    • RE: M5Paper and images drawing

      So I did some experiment and I was on the right way to do it, except I'm trying to port an example that uses BMP files and those won't be displayed.

      I downloaded the flower from M5Paper examples.
      I put it on my SD card, both as /flower.jpg and /bmp/flower2.jpg (I know, bmp is for... bmp files, but I wanted to test file in a folder)
      Then I run the code from @world101 just renaming the file I wanted.
      This works.

      I then put my bmp files (coming from an Adafruit guide) in my SD card, folder is bmp.
      I even tried to use a shorter name for the file.
      None worked.

      
      M5EPD_Canvas canvas(&M5.EPD);
      
      void setup()
      {
        M5.begin();
        M5.EPD.SetRotation(90);
        M5.EPD.Clear(true);
        //overlay bg on full screen
        canvas.createCanvas(540, 960);
        //canvas.setTextSize(2);
        //jpg must be in 90degree (full screen)
      
        //image from SD card
        //canvas.drawJpgFile(SD, "/bmp/flower2.jpg"); //put image.jpg on the sdcard before uploading sketch
        //canvas.drawBmpFile(SD, "/bmp/weather_icons_20px.bmp", 0, 0);
        canvas.drawBmpFile(SD, "/bmp/shortname.bmp", 0, 0);
      
        canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);
        delay(2000);
        //shutdown to save battery
        Serial.println("shutting down now...");
        M5.shutdown();
      }
      
      void loop()
      {
      
      }
      

      I think I need to dig the documentation to find which precise BMP format is supported.

      posted in Cores
      TitiMoby
    • RE: M5Paper and images drawing

      It looks like what I tried.
      I need to isolate the part of my code that is supposed to draw the image.
      Maybe there is an issue with the file I use.
      Thanks a lot.

      posted in Cores
      TitiMoby
    • M5Paper and images drawing

      I'm looking for example of loading and drawing BMP or Jpg images on the M5Paper.
      It's a bit hard to try to figure it out from the Factory test so if anyone has some shorter example, that will help me a lot.

      posted in Cores
      TitiMoby
    • RE: Micropython - SHT30 in BTC Base

      It is a bit too early because MicroPython is still not there on M5Paper that I own, but as it uses the same SHT30, I also noticed some delta issue in temperature using Arduino.
      Is it a common thing with this component ?

      posted in Bases
      TitiMoby
    • RE: ATOMFLY Community Project Collection: How to fly the ATOMFLY?

      I made some progress on the control side.
      I have a testing android app that communicate with the atom fly through Bluetooth.
      It's basic and only to test, now I need some true PID on the motors before writing a fly control app
      All code is available as usual : https://gitlab.com/TitiMoby/atomflychallenge

      https://youtu.be/_Wg2lruzzcw

      posted in PROJECTS
      TitiMoby
    • RE: ATOMFLY Community Project Collection: How to fly the ATOMFLY?

      AtomFly is based on Atom Lite which is new to me (I only have a M5Stack in the family)
      I followed the document to install Arduino IDE and the library.
      It was not clear but I figured out to install FastLed and AD

      Then I wanted to have a rough try to know if everything is ok and I picked few lines from the piece of code provided.
      But:

      In file included from /home/titi/Arduino/libraries/FastLED/FastLED.h:65:0,
                       from /home/titi/Arduino/libraries/M5Atom/src/utility/LED_Display.h:4,
                       from /home/titi/Arduino/libraries/M5Atom/src/utility/LED_DisPlay.cpp:1:
      /home/titi/Arduino/libraries/FastLED/fastspi.h:130:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output
       #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"
      

      FastLed library has different implementation but only one with FastLed as complete name.
      I'm using M5Stick-C as board target as mentionned in the doc.

      Any clue ?

      Edit:
      It is not obvious, it's been a while since I used Arduino IDE, it seems it's a warning, I was able to run through all motor tests.
      So, for anyone looking at this, you can code and it works.

      posted in PROJECTS
      TitiMoby