Hello @chetosvsgeez

Have you considered using the latest UI 1.7.2? Your code runs fine here on a M5Stack Gray and UI 1.7.2.

BTW: if you enclose your code with ``` on a new line before and after the code, the code becomes much more readable. For example:

from m5Stack import *

Thanks
Felix