@BR123456 This kind of query need to be sent to the micropython writers not the end suppliers like M5Stack.
Global Moderators
Forum wide moderators
-
RE: Option to compile the UIFlow2 code
-
RE: Display not refreshing within loops
Hello @BR123456
the trick is to only set a flag in the button clicked callback function and then in the main loop do whatever needs to be done when that flag has been set.
I created an example of what I mean in the UIFlow Project Zone: M5Tab5_Count_In_Loop_Test_UIFlow2.3.5
Thanks
Felix -
RE: Touchscreen not responding when using GoPlus2 with two servo motors
Hello @eleonorafontana16
I don't know whether it will affect one or the other or both long term. The fact that both use the same I2C address is like talking to two people with the same name. Some answers might get lost due to both people responding at the same time with different answers.
Thanks
Felix -
RE: Tab5 - Speaker init after crash (using Arduino IDE)
Hello @aleekwen
I am testing with the speaker sample code in M5Unified and then force a crash. And yes, after the automatic reboot the speaker is silent. However a short press on the power/reset button brings the speaker back.
The only thing I noticed, is, that when the battery is attached I sometimes need to reset M5Tab5 twice before the speaker comes back.
BTW: after a reboot the call to
M5.begin()
automatically enables the speaker; there is no need to callM5Tab5.SetSpeakerEnable(true)
.Thanks
Felix -
RE: Touch Button Widget for Paper S3
Hello @Schwibach
while using UI designer to draw a rectangle works fine, getting the rectangle's parameters (e.g. x, y, ...) is not implemented (at least I couldn't find any
get
functions for rectangles).That said, I created a Micropython example which uses a Button class to draw the buttons, labels and check for touch. You can find it here. It's not using the UI designer nor is it using blocks but it should give you an idea hopefully.
Thanks
Felix -
RE: Touchscreen not responding when using GoPlus2 with two servo motors
Hello @eleonorafontana16
Unfortunately M5Core2 and GoPlus2 are not compatible. From the GoPlus2 shop page:
Note: This module has an I2C address conflict with the touch screen of the CORE2, so it cannot be used together.
Thanks
Felix -
RE: StamPLC: Replace RTC battery?
Hello @nvko23
after opening my M5StamPLC I found that the RTC battery is located at the underside of the CPU board. It is soldered to the board. So yes, I'd say it is replaceable, but the proper soldering tools are required.
BTW: the RTC battery in my M5StamPLC seems to be completely flat as I measure 0 volts.
Thanks
Felix -
RE: StamPLC: Interrupt of IO expander AW9523
Hello @nvko23
well, according to the schematics, SYS_INT is connected to multiple ICs, including PI4IOE5V6408, RX8130, AW9523, LM75 and INA226.
The required pull-up resistor (5.1k) is R10 - it's drawn near PI4IOE5V6408 on the CPU schematic.
Edit: I ran some tests - this is what I found:
- Without any connections to Inputs 1 - 8 SYS_INT is high (as expected).
- However if any input is asserted while powering up M5StampPLC SYS_INT goes low even though AW9523 interrupts are disabled during its initialization. See here.
Adding
_io_expander_b->resetIrq();
in the M5StapPLC library after disabling interrupts changes SYS_INT back to high.My conclusion: AW9523 by default at power up has interrupts enabled and any interrupt sticks even when interrupts are disabled later on.
Thanks
Felix