How to get Device infos from m5stack Devices
-
thanks for the heads up ... I would hope that they made some kind of effort in that regard ... for this particular model.... if anywhere .. I would expect it here..
Quote :
", RTC(BM8563) for controlling accurate timing and deep sleep funcionality. "Sure its educational ... so it will be worth to me regardless...
if not ... it will still be good to get me started for maybe my own project with a regular esp32 or smth...
E-ink combined with low power is intersting to me .
Already had my eye on a combination of waveshare e-ink displays combined with a esp32 setup....So this is a good start ;)
-
@felmue Do you have CoreInk schematic? I cannot find it. Eg. pin 35 seems to be used to measure battery voltage in samples, but no word in docs. Also DeepSleep seems to be supported in some newer unreleased libraries and does not work whne CoreInk is on USB power.
-
@martin8bity said in How to get Device infos from m5stack Devices:
@felmue Do you have CoreInk schematic? I cannot find it. Eg. pin 35 seems to be used to measure battery voltage in samples, but no word in docs. Also DeepSleep seems to be supported in some newer unreleased libraries and does not work whne CoreInk is on USB power.
There are no know schematics for the coreink however I have been trying to create some.
-
Hello @Martin8bity
only what has been published as overview schematics. And yes, GPIO35 seems to have been assigned to read the battery voltage.
Thanks
Felix -
@m5stack said in How to get Device infos from m5stack Devices:
we didn't open-source all firmware code.
this function would add it in the next version. we will release it this week or next week.
the API would be like that
import deviceCfg deviceCfg.get_board_name()
I installed the latest firmware so was it included ? What is the name of the funciton ?
Can I rely on this working across all devices ? otherwise I may just need to let the user name devices themselves. ;) -
@felmue Thank you. The overview schematic is not complete and dos not contain enough information.
@m5stack It is very hard to develop anything for your devices if your libraries are incomplete, buggy and poorly documented (sorry, but they are) and the detailed schematic is non existent. Either create a working libraries or allow people to do it themselves, which is really hard without schematic. Without this I cannot use your devices in my projects (I have thousands of users, who buy your products just because of my projects). I do it for free asn Open Source. I am excited with all new product and I am also big evengelist for the M5Stack, but with more and more products I spent tens of hours just by finding how it works and I am starting to be frustrated from it. Sad. -
@m5stack said in How to get Device infos from m5stack Devices:
you could refer to this program to get the battery status info:
https://github.com/m5stack/M5StickC/tree/master/examples/Basics/AXP192
but before you compile it. you need to download the
M5StickC-Plus
lib for you device. and change the program include code.Hi, thanks for you answer,
But is secure that use this files, the AXP192 library files from StickC in the CoreInk board? I did see that in
axp.begin()
method you enable some voltages but the board is different, maybe I could be damage my CoreInk? -
@m5stack I tried the
import deviceCfg deviceCfg.get_board_name()
it throws an error ....
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "deviceCfg.py", line 270, in get_board_name TypeError: string indices must be integers, not str
I tested all the other functions of deviceCfg and they all work ...
but the one I asked you to add does not....hanks for implementing it .. but it doesnt work ;)
-
Hello @Medy
which M5Stack device did you try?
I've just tested all of my M5Stack devices using UIFlow 1.8.7 and below code successfully (except M5StampPico which returns an incorrect name).
import deviceCfg print(deviceCfg.get_board_name())
Results for various M5Stack devices running UIFlow 1.8.7 firmware:
M5Stack Gray : core M5Core2 : Core2 M5StickC : StickC M5StickCPlus : StickC-Plus M5CoreInk : CoreInk M5Paper : paper M5Atom : Atom M5StampPico : Atom
Thanks
Felix -
@felmue I tried the core gray
guess I will try again and report back if it works.
Ideally the the new m5 stamps will works as well with coming updates ?