@icarus121
Your problem is that you use "loop" in the callback function of "touchbutton0_was_pressed". This will cause your program to loop forever.
I recommend you add a flag to indicate whether button1 or button2 is pressed: in the loop, if button1 is pressed, execute program 1; the same applies to button2.
Global Moderators
Forum wide moderators
-
RE: Need help with Activating looping functions in UiFLow
-
RE: how does the M5SticC-Plus2 charge its battery?
Hello @wjcarpenter
the battery charging IC is TP4057 and battery voltage is measured via R40 / R41 into GPI38. See second page of the schematics here.
Thanks
Felix -
RE: UIFlow 2.0 sync error
@benhultink
seems like a network issue, have you checked your internet connection? have you turned system proxy on? have you tried change a network? -
RE: What are your favorite cheap accessories for M5Stack projects?
@williamsmaith Thank you, Your question could have been interpreted in many ways but, now we know your base level of understanding we can give details.
One of my projects uses a Mio robot I got cheep from a toy store. I removed the circuit board and found the M5Stack core fits it perfectly (you can find the project on hackster).
The biggest none m5stack range you can try is technic lego, the options it offers is amazing. I use the pressure sensor to expand the ability of technic pneumatics.I have an old lego computer interface that I can control from a core.
We had one member controlling DJI drones and RC cars. -
RE: What are your favorite cheap accessories for M5Stack projects?
@williamsmaith Do you know how to code?
do you understand electronics?
Have you tried any of the M5Stack accessories?
Have you looked in the documents and tried to replicate and of the M5Stack devices? -
RE: Core2 cannot be burned as Public and is not active in UI2Flow
@PavelNDC Public (red) means that's it's not connected. normally this is an issue with the M5Stack server.
-
RE: M5 stick Plus 2 turns off after a few second
@Wizzy38952 Have you charged it?
Erase bruce and only burn UIFLOW2 -
RE: PbHub 1.1 on STAMPLC - Couldn't find Pbhub on PortA
Hello @bensonwhlee
I think you need to use the M5StamPLC library together with M5Unified and M5GFX libraries for it to work properly.
Please find an example here which works for me.
Edit: if you don't need M5StamPLC specific functions then it should be sufficient to add the following line to your setup code:
Wire.begin(2, 1, 400000U);
Thanks
Felix -
RE: No enciende la pantalla.
@Salam-Rashid said in No enciende la pantalla.:
A quien pueda interesar: Problema solucionado. He desmontado el aparato le he desconectado la batería "es muy fácil, tiene un conector blanco de dos pines, con un cablecito Rojo y uno Blanco que se puede conectar y desconectar", con la batería quitada, lo he conectado al ordenador a trabes de su cable USB Tipo C y se ha encendido la pantalla. He desconectado el cable USB y lógicamente el modulo se ha apagado porque no tenia la batería puesta. He vuelto a conectar la batería he apretado el botón de encendido y ha vuelto a funcionar. así que problema resuelto. No se ni como ni porque surgió el problema, pero ya esta resuelto. La solución la he encontrado en este mismo foro en el idioma Japones, por el compañero @mongonta555. Gracias.
helpful!