Navigation

    M5Stack Community

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

    Topics created by marcvl

    • M

      [MQTT-Core] Support for RETAIN
      Features Wish List • • marcvl

      6
      2
      Votes
      6
      Posts
      6404
      Views

      F

      The MQTT Adafruit forum told me: "An automatic process in order to synchronize the subscriber without any data loss? You can - please see this documentation about retained values here: [https://io.adafruit.com/api/docs/mqtt.html#retained-values](link url) “ Checking the Github I've found an open issue about support of the MQTT retain Flag in M5 UIFlow code. See: [https://github.com/m5stack/UIFlow-Code/issues/1](link url) My PAHO subscriber client currently displays a zero value in the retain flag returned from the M5 publisher and Adafruit broker. Do you know the status of this issue?
    • M

      Core2 vs. Core
      Micropython • • marcvl

      3
      0
      Votes
      3
      Posts
      5623
      Views

      R

      If the M5 firmware is close to the upstream MicroPython, you can: import gc gc.mem_free() And it will print the available free memeory gc.collect() Will run the memory garbage collection to free up memory that is no longer being used. You can gc.collect() somewhere in your main loop to make sure memory is kept tidy. See the gc module page for more information https://docs.micropython.org/en/latest/library/gc.html?highlight=gc#module-gc
    • M

      Special character handling - MQTT error
      Micropython • • marcvl

      5
      0
      Votes
      5
      Posts
      5497
      Views

      M

      So my last comment provided the solution.... The correct way of doing this is : 1/ Specify the Unicode character in the payload with chr(186) where 186 is the character number (in this case representing MASCULINE ORDINAL INDICATOR - Unicode: U+00BA, UTF-8: C2 BA. 2/ Ensure that your json.dumps applies utf-8 encoding before sending it to MQTT as follows: m5mqtt.publish(topic, json.dumps(payload).encode('utf-8')) Problem solved.
    • M

      Newbie question - how to get started?
      Micropython • • marcvl

      19
      0
      Votes
      19
      Posts
      18848
      Views

      M

      Github repository of my MQTT Thermostat running on Core2 is here. It's pretty cool. The thermostat supports various modes: off/auto/manual/heat/cool/fan. You can specify minimum cycle duration as well as set swing mode parameters. It automatically gets discovered by Home Assistant. You can set thermostat mode and target temperature in Home Assistant and they will automatically get reflected on the Core2 display. It currently relies on the ENVII module for temperature reading, and requires a WIFI connection and an active MQTT broker. I haven't had time to implement error handling, so if something goes wrong, it might be non-obvious to figure out why. More work to be done. I couldn't figure out how to enable touch for a specific screen area without using visible buttons with M5stack_UI, so instead I used an lvgl button with invisible borders.
    • M

      Randomness ...
      UIFlow • • marcvl

      8
      2
      Votes
      8
      Posts
      7850
      Views

      Hello @joefly adding some small delays fixes the artifacts for me: import time wait_ms(25) touch_button0.set_hidden(True) wait_ms(25) lcd.circle(130, 100, 90, fillcolor=0xffff66) Thanks Felix
    • M

      [Mac OS] Copy/Paste
      UIFlow • • marcvl

      2
      0
      Votes
      2
      Posts
      2117
      Views

      M

      I found a workaround. Use the web version of UIFlow instead. Copy/Paste works great.
    • M

      Blinking characters
      UIFlow • • marcvl

      9
      0
      Votes
      9
      Posts
      7160
      Views

      T

      @world101 said in Blinking characters: @marcvl wordle unlimited said in Blinking characters: I implemented your exact code Not quite exact... I see your issue. You are missing one block that differs from my flow... Thank you so so much. This answer was very very useful to me.
    • M

      Dealing with background color changes ...
      UIFlow • • marcvl

      6
      0
      Votes
      6
      Posts
      5649
      Views

      M

      BTW, I created a new topic "randomness" with more detail on the issues I'm seeing. It goes beyond background color refresh...