Good afternoon.In such a large case and dimensions, make an expansion module with 16 inputs and 16 outputs. Of the 16 inputs, select and make 2, and if possible, then 3 high-speed encoder inputs. LEDs on the inputs and outputs of the display.
@democrazia : thank you, adding from easyIO import * solved the issue. Thank you!
@ajb2k3 : you are correct, the 485 stock version doesn't have batteries. However I don't think M5Stack engineers are planning to separate the two versions in UIFlow as there is only one M5Station to select from in UIFlow. So yes, it is a bug - instead of the error we should get 0.
thank you for your suggestion. Unfortunately an on the screen indicator would not be updated properly if the M5Paper is turned off by pressing the reset / power off button. That is where an LED indicator, which is independent of the screen, would come in handy.
Maybe it could still be wired to a GPIO, but via a solder bridge, so it could be used optionally?
Anyways, I've soldered a wire from AXP IRQ to ESP32 GPIO35. I can detect now when USB (aka ACIN) has been connected or disconnected while ESP32 is in light sleep and use that to wake up.
Power consumption update: even though the example keeps the M5CoreInk in shutdown mode (everything off except for the RTC) most of the time and only powers up for about 2 seconds every minute to do the update, the built in battery only last for about one week.
No offence, but I went ahead and created my own M5GO in white with some additional modifications, actually mostly removing stuff which consumes too much power for my battery operated project. I've called it M5PogoBottom.
I think you are mistaken. AFAIK the M5Atom Lite / Matrix doesn't contain an AXP.
BTW: With M5Atom Lite / Matrix you will never get a really low power consumption as even when ESP32 is sleeping there still is the USB/Serial chip which cannot be turned off I think.
For the M5AtomS3 you can find a deep sleep example here.