Thanks! My son is beta testing it now, he picked purple and yellow as the colours for the Leds =). I've added some extra's so we can set the timer manually (increments by 5) and added some extra's like a basic battery indicator. I'll post it on the Community platforms when we reach a stable, working feature.
Latest posts made by sjako
-
RE: [Solved] Poweroff M5Stack using uiflow?
-
RE: [Solved] Poweroff M5Stack using uiflow?
@world101 Wow, just simply wow! What a extensive reply you gave there. I'm really grateful for your explanation and your example code.
I indeed have the Fire version, so that's why I'm missing the power off block. As you suggested, I just hooked in the Execute code block with "machine.deepsleep()" at the end of my flow, and it works perfectly. Tomorrow my son gets to pick the led colours so he'll get a bit more involved, after that, this project is done =)
-
[Solved] Poweroff M5Stack using uiflow?
Hello!
I would like to power off my M5Stack, using UI flow. Is this possible? I've found references to code examples (for example: powerOFF()) but I could not find any block to accomplish this.
Or could I use the "execute python code" block in some way in my flow?
My use case is a timer in which my son is allowed to read in bed during the evening. After a set time, the M5stack displays a message, and should power off.
-
RE: M5Stack FIre Wifi can not connect
I think the underscores are indeed the issue. I just did a test in which I used my pc as a WIFI hotspot, and the M5Stack connects properly now. It's a weird thing underscores can't be used in the SSID...
-
RE: UIFlow 1.5.4
@m5stack Thanks, I found it, it was a bit hidden =)
Maybe it should be a bit more clear 1.5.4 is a beta version? Maybe add a "b" after 1.5.4? Before I also tried the following option, but that's a completely different revision number
-
RE: M5Flow Blockly Screen rotate issue
Does anybody have any clue why this happens? Should the screen only be rotated once?
-
RE: UIFlow 1.5.4
What's the latest stable (non beta) release of UIFlow, is that still 1.4.5? (When I download the version from https://m5stack.com/pages/download , I get 1.4.5)
-
M5Flow Blockly Screen rotate issue
If I develop a simple Blockly (M5Flow) layout for rotating the screen, this does not work. When I look at the underlying Python code I noticed the "lcd.setRotation()" code ends up at the start of the code, and not at the spots where I would expect it (for this example in the button code blocks)
Blockly Code:
Python Code:
from m5stack import * from m5ui import * from uiflow import * lcd.setRotation(1) lcd.setRotation(3) setScreenColor(0x222222) label0 = M5TextBox(123, 111, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0) def buttonA_wasPressed(): # global params pass btnA.wasPressed(buttonA_wasPressed) def buttonB_wasPressed(): # global params pass btnB.wasPressed(buttonB_wasPressed)
If I copy/paste the "lcd.setRotation()" code blocks into the button blocks, the code works properly on the device. But when I switch back to Blockly, this solution is reverted. I'm having this issue with firmwares 1.4.5.1 and 1.5.2
-
RE: How to get UI Flow on to device?
The green bar is just for downloading the firmware to your PC, the burn step is for getting the firmware from your PC to your device. Did you install that usb driver? I did read somewhere people were having difficulties with that part.