M5Station-485 - Get Battery Percentage - NameError
felmue last edited by
when I try to use the
Get Battery Percentage Vmin / Vmaxblock (UIFlow 1.10.4)
I get the following error:
Traceback (most recent call last): File "flow/m5cloud.py", line 76, in _exec_fun File "<string>", line 28, in <module> NameError: name 'map_value' isn't defined
democrazia last edited by
Did you added "from easyIO import * " at the beginning ?
ajb2k3 last edited by
@felmue There is no batteries in the Station485
However you may have also found a bug.
felmue last edited by felmue
@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.