If you want to download visual studio,click me
Best posts made by sysdl132
-
RE: UIFLOW does not save python code
Latest posts made by sysdl132
-
Problems when building OpenTyrian for esp32...
# https://github.com/jkirsons/OpenTyrian.git $ make menuconfig Makefile:9: /make/project.mk: No such file or directory make: *** No rule to make target '/make/project.mk'. Stop.
-
FATAL ERROR: Name m5line is not defined
from m5stack import * from m5ui import * from uiflow import * import unit setScreenColor(0x514f4f) earth0 = unit.get(unit.EARTH, unit.PORTA) std = M5Circle(40, 91, 10, 0xFFFFFF, 0xFFFFFF) text0 = M5TextBox(61, 119, "Status", lcd.FONT_Default, 0x78ff00, rotate=180) text1 = M5TextBox(77, 149, "Water monitor", lcd.FONT_DefaultSmall, 0x00e5ff, rotate=0) label0 = M5TextBox(77, 58, "value:", lcd.FONT_Default, 0xe4ff00, rotate=180) rectangle0 = M5Rect(2, 41, 34, 20, 0xFFFFFF, 0xFFFFFF) angread = M5TextBox(30, 57, "err", lcd.FONT_DefaultSmall, 0x000000, rotate=180) rectangle1 = M5Rect(16, 11, 20, 20, 0xFFFFFF, 0xFFFFFF) label1 = M5TextBox(77, 27, "Unit std:", lcd.FONT_DefaultSmall, 0xfffe00, rotate=180) line0 = M5Line(M5Line.PLINE, 16, 128, 62, 128, 0xFFFFFF) # <--bug line need = M5TextBox(75, 74, "Water needed!", lcd.FONT_DefaultSmall, 0xff0000, rotate=180) # sysinit def init(): need.hide() angread.setText('0') rectangle0.setBgColor(0xff0000) rectangle0.setBorderColor(0xff0000) std.setBgColor(0xff0000) std.setBorderColor(0xff0000) init() while True: if False: angread.setText(str(earth0.analogValue)) elif False: pass wait_ms(2)
-
RE: I think my StickC has died ... any suggestions?
You can try to reset your 'sick-C' by erase your flash and burn the firmware again?
(my older m5stickC bought at 2017 .it never 'died'. I erase and burn the firmware for about 1,500 times and it never 'sicked') -
RE: Bitcoin / Multi Crypto Coin Ticker with 24 candlesticks chart
@frittna
can you made the green frame to blue?The default icon is blue. -
RE: Erry when I try to build micropython firmware
maybe your compiler has some error(I only used arduino and uiflow,you can try with it)🤔
-
RE: Detect LongPress-Button (but not only when released button)
@m5stickfreakler Try to set the longpress time shorter.
from m5stack import * from m5ui import * from uiflow import * setScreenColor(0x222222) buttonA_LongPressed = 0 buttonB_LongPressed = 0 buttonC_LongPressed = 0 longPress_ms = 600 # or shorter longPress_interval = 100 #============================== # Your code here
-
RE: Analog Pin
My earth unit can work on stickC with analog reading.
(Maybe is G33)#define analogpin 33 //maybe it's 32