Navigation

    M5Stack Community

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

    Peter

    @Peter

    1
    Reputation
    44
    Posts
    2131
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Peter Follow

    Posts made by Peter

    • m5stick c plus battery will not charge

      I bought a couple of M5Stick C Plus a few months ago and now I want to put them into operation. Unfortunately, the battery does not charge. A 68 ohm resistor between bat and 3.3 volts does not help either.
      Does anyone have a tip on this?

      The voltage at PIN BAT is 2 mV. When I connect a LiIon battery there, it will be charged.
      Looks like a cold solder joint. Is something like this known. It is so with all 4 tested devices.

      posted in M5 Stick/StickC
      P
      Peter
    • Solved - lcd.xxx() don't work

      I have accessed the M5Stick C Plus display in Micropyton with lcd.print() in the past. Suddenly this does not work anymore.
      from m5stack import *
      from m5ui import *
      from uiflow import *
      lcd.clear()
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      NameError: name 'lcd' isn't defined
      Can someone explain me how to use the internal M5Stack Micropython commands again.
      As IDE I use Thonny.

      After a restart of Thonny, it works again.

      posted in Micropython
      P
      Peter
    • RE: M5Core detects pressure on key A even if the key was not pressed at all.

      @felmue

      The tip has hit the problem. I have implemented a query of the key A in the callback routine after 1 ms. Only if the key is still pressed the routine is executed. Otherwise nothing is done. Now there are no more key presses from the ghost.

      Thanks

      posted in Cores
      P
      Peter
    • RE: M5Core detects pressure on key A even if the key was not pressed at all.

      @felmue
      Thank you for the information.

      I will have a look at the links. At first glance it might fit.

      Peter

      posted in Cores
      P
      Peter
    • M5Core detects pressure on key A even if the key was not pressed at all.

      I discovered by accident that the M5Core sends out a command via MQTT, even if the associated button was not pressed at all. Has anyone ever observed something similar. What can be the reason. It only occurs with key A.

      I have written a program to control my marquee in UIFlow. Here is the resulting Micropython code:

      def buttonA_wasPressed():
        global temp, prog_name, lfd_nummer, version, data_update, balkon, wohn_zimmer, testraum, message
        m5mqtt.publish(str('whg/balkon/markiese/strg'),str(lfd_nummer))
        lab_status.setText(str(lfd_nummer))
        lab_status.show()
        lfd_nummer = (lfd_nummer if isinstance(lfd_nummer, Number) else 0) + 1
        pass
      btnA.wasPressed(buttonA_wasPressed)
      

      Unfortunately, the indentations are swallowed. Is there a way to format code?

      Peter

      posted in Cores
      P
      Peter
    • RE: Zoll was muss ich beachten

      alternativ kannst Du auch bei [https://www.distrelec.de/de/manufacturer/m5stack/man_msa?no-cache=true&page=1&pageSize=50](link url) bestellen.

      posted in Deutsches Forum
      P
      Peter
    • RE: MQTT mit Mosquitto (Basic Core / Fire) klappt nicht

      Mit UIFlow 1.8.4 habe ich auch keine Probleme. Der Prefix mqtt/ ist bei mir nicht erforderlich. Lag wohl an der Version der IDE.

      posted in Deutsches Forum
      P
      Peter
    • RE: "\n" becomes "\\n"

      @robalstona

      Tnx for the tipp. I'll try it.

      posted in UIFlow
      P
      Peter