@felmue Thanks Felix, it works:)
I didn't look to the Project Zone. I'll do it now.
Posts made by Peter
-
RE: UiFlow 2.0 discuss(how-to, bug, feature request or sometings)
-
RE: UiFlow 2.0 discuss(how-to, bug, feature request or sometings)
I would like to use the touchscreen on the M5Dial. But the block M5.Touch.getCount() does not work in a while loop! It only works in the main loop. So the touchscreen is hardly usable in Micropython. I have not been able to realize the waiting for a touch.
-
RE: Cardputer question - how to build text strings from user key strokes?
Hi,
my Micropython Modul ist ready to use: http://micropython.aundz.net/index.php?title=M5CardComputer_Keyboard#Ein_Modul_zur_Keyboardabfrage
It is to use with Micropython (Thonny) not with UIFlow!
M5Stack uses 2 spaces for indentation, I used 4 spaces as it is standard in Micropython. -
RE: Cardputer question - how to build text strings from user key strokes?
I will inform you when it is available on the internet. What should I write as a copyright notice?
-
RE: Cardputer question - how to build text strings from user key strokes?
@dissy
Hello dissy, thank you very much for your keyboard script. I have just spent a few hours trying to bring the Cardputer keyboard to life. Your program got me on the right track.
I am currently writing a manual on how to use the cardputer with micropython in German. I would like to use your script as a Micropython module and make it available for download on my website, with your authorship of course. Do you agree with this?
My website: https://micropython.aundz.net/index.php?title=M5CardComputer is still a work in progress.
Thank you very much. -
libs.urequests.request() Error in M5ATOM Lite
Unfortunately, the requests module does not work in the M5ATOM Lite firmware:
req = libs.urequests.request(method='GET', url='https://api.github.com/repos/kapest007/My-Micropython-OTA-Updater/releases/latest', headers={'Content-Type': 'text/html', 'User-Agent': 'kapest007'})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libs/urequests.py", line 60, in request
OSError: [Errno 12] ENOMEMIn the M5Stick C Plus and M5STAMP Pico it does what it should.
I have tried this with the current firmware 1.11.8.
I hope the problem can be fixed in the next firmware release.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. -
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.
-
RE: M5Core detects pressure on key A even if the key was not pressed at all.
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
-
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
-
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
-
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.
-
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.
-
RE: "\n" becomes "\\n"
@world101
Then M5Stack must have taken over the problem.
I will try again with replacing "\\n" with "\n" with the appropriate text block. But still got to it because my computer had to be reinstalled. I will report back. -
"\n" becomes "\\n"
I want to output multiline text. If I enter the text as a literal in the properties of a label, the line break is executed correctly. But if the text with the line break is in a variable \n becomes \\n. This means that the line break is no longer executed. Is this behavior intentional?
I think it is a bug that should be corrected as soon as possible.Thanks a lot
-
RE: Pa.HUB in m5atom
@iamliubo
Thank you :)
I just noticed that it is already implemented. Thank you very much for that. It helps me a lot.