I've got it.
I can start new threads with:
import _thread as th
Cool stuff :-)
With a little "wait_ms()" its more clear what you mean :-)
from m5stack import * from m5ui import * from uiflow import * setScreenColor(0x111111) label1 = M5TextBox(05, 05, "a", lcd.FONT_Default,0xFFFFFF, rotate=0) label2 = M5TextBox(05, 20, "x", lcd.FONT_Default,0xFFFFFF, rotate=0) label0 = M5TextBox(16, 50, "A", lcd.FONT_DejaVu72,0xFFFFFF, rotate=0) for angle in range(91): label0.setRotate(angle) label1.setText('angle:' + str(angle)) wait_ms(50) for posX in range(16, 256): label0.setPosition(x=posX) label2.setText('pos-x:' + str(posX)) wait_ms(100)
I am sure it is ones more a bug :-)
You can check this, if you let the angle zero. You can see that the char disappears at pos-x = 33. And the same behavior occurs, if you have rotated the char. It is obviously one more of the uncountable bugs.
@M5Stack: Why does the M5Stack not draw a char if a small part is outside of the screen? We can display a char half way, if it is rotated, but not if it is at angle 0 degrees. That makes no sense. Maybe someone would like to program a scrolling text so that chars appears on the right and disappears on the left.
@M5StickFreakler what firmware are you running on your devices?
I am checking through items at the moment and finding problems due to the switch to the mainstream micropython branch.
I have checked it with UIFLOW 22.214.171.124 and following firmwares
Nothing is working. I have tested it on 3 different M5Stack FIRE with 3 different GPS units.
Each on all ports - nada
It is very frustrating and time consumpting and costly. I think M5Stack should increase its quality standards. Here in Switzerland, we are used to the fact that products work what they promise and what we pay for.