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
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
@felmue
Thank you for the information.
I will have a look at the links. At first glance it might fit.
Peter
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
alternativ kannst Du auch bei [https://www.distrelec.de/de/manufacturer/m5stack/man_msa?no-cache=true&page=1&pageSize=50](link url) bestellen.
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.
@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.
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
@iamliubo
Thank you :)
I just noticed that it is already implemented. Thank you very much for that. It helps me a lot.
@iamliubo
Thank you for the information. I was aware of the address change in the hardware. That a corresponding adjustment in the UIFlow Ide is planned fills me with joy.
@peter Thanks for the implementation !!!
For some units the I2C address can be changed, so that several identical units can be controlled via one I2C bus. Unfortunately I have not found a way to change the address in UIFlow or micropython.
With the PaHUB this can be avoided, but how can I control several PaHUB?
I am very reluctant to switch to the Arduino IDE. There it seems to work. Why not in Micropython?
@felmue
Please include the use of the PaHUB in the next release of the M5Stick C/plus and ATOM.
Peter
Hallo @papanoel ,
I had the same problem on M5Stck C. In this link https://community.m5stack.com/topic/2852/not-possible-to-connect-pa-hub-on-m5stack-core2/6 I find a workaround for this problem. It works fine: https://www.peters-bastelkiste.de/m5stick-c-und-atom-units-hinter-pahub-betreiben/ and https://www.peters-bastelkiste.de/m5stick-cplus-als-mehrfach-multimeter/ (in german).
I hope in the next revision this will be resolved.
Graetings Peter
Eine schöne Sache. Funktioniert aber wohl nur mit der Arduino IDE?
The Unit PaHub is available as a connection for the Core models in addition to the pins. Unfortunately, this is not the case with the M5Stick C and ATOM models. I ask to introduce this possibility also with these models. I need it urgently!
The power supply problem with the M5Stick C models is known to me. But it can be solved easily with side cutters, Soldering iron and USB charger bypass.
Peter Stöck
Translated with www.DeepL.com/Translator (free version)
Here a link to my usage: https://www.peters-bastelkiste.de/m5stick-cplus-als-mehrfach-multimeter/ (only in german)
@world101
Thank you for the fast answer,
"strg - works" :)
Hello, me again :(
When I specify more than 4 parameters in the block editor, the bar with the download button at the bottom disappears from the display area of the monitor (1280x1024). There is no slider. I tried it with Firefox, Edge and Chrome. The same with all of them.
Is there a solution for this problem?