How to get Device infos from m5stack Devices
-
@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 strI 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 : AtomThanks
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 ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login