Latest posts made by shiva
-
Running ENV III Hat and SGP30 Unit Simultaneously on M5StickC Plus2
Hi everyone,
I'm working on a project using the M5StickC Plus2, and I need some guidance on sensor compatibility and I2C addressing.
Currently, I have the following hardware:
M5StickC Plus2
ENV III Hat (connected via the Hat port)
SGP30 Unit (connected via the Unit port)
I would like to run both the ENV III Hat and the SGP30 Unit at the same time. Before I dive deep into development, I want to confirm:- Is it possible to have both devices connected and operational simultaneously on the M5StickC Plus2?
- Are there any I2C address conflicts between these two sensors?
- If there is a conflict, is there a recommended workaround (e.g., using an I2C hub, bit-banging, or switching to an ENV II Hat instead)?
For reference, I’ve attached screenshots of the Hat and Unit details as shown in the M5Stack documentation.
Any help or insights would be greatly appreciated.
-
RE: Problem with button input during loop. (interupt loop)
@shiva said in Problem with button input during loop. (interupt loop):
Hello,
I have developed a productivity timer application and am encountering two issues related to interrupting a loop that includes a sleep operation.
Interrupt Timing: Currently, to interrupt the loop using a button press, the button must be triggered at the precise moment the event occurs within the loop. This makes it very difficult to reliably interrupt the loop as intended.
Label Update After Interruption: When the loop is successfully paused, a display label (label 0) still updates once more with a lower value before halting, which is unintended.
Could you please advise how I might improve the code to:Allow the loop to be interrupted at any time, rather than requiring precise timing, and
Prevent the label from updating after the interruption is triggered?
Thank you in advance for your assistance.Here is a link to my projectL https://uiflow2.m5stack.com/?pkey=afd1587cf202443388b62587e6c3744e
Thank you, this is what I am looking for. Do you have a link to the documentation for Timer? I want to create a countdown timer.
-
Problem with button input during loop. (interupt loop)
Hello,
I have developed a productivity timer application and am encountering two issues related to interrupting a loop that includes a sleep operation.
Interrupt Timing: Currently, to interrupt the loop using a button press, the button must be triggered at the precise moment the event occurs within the loop. This makes it very difficult to reliably interrupt the loop as intended.
Label Update After Interruption: When the loop is successfully paused, a display label (label 0) still updates once more with a lower value before halting, which is unintended.
Could you please advise how I might improve the code to:Allow the loop to be interrupted at any time, rather than requiring precise timing, and
Prevent the label from updating after the interruption is triggered?
Thank you in advance for your assistance.Here is a link to my projectL https://uiflow2.m5stack.com/?pkey=afd1587cf202443388b62587e6c3744e