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.
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.
-
RE: How to get UI Flow on to device?
A green bar was displayed while it downloaded:
Next step was indeed pressing the burn button on the right side of m5burner. A log was shown with lines counting to 100% for two times. (I might have pressed that erase button first). After that it worked properly
-
RE: How to get UI Flow on to device?
I don't know if this helps you, but I think there was an update to the M5Flow to include the firmware browser (previously called M5Burner). I update my firmware using these options/buttons (see screenshot, the arrow next to the firmware was moved from the top bar to be next to the firmware texts). I picked 1.4.5.1 because that would be most stable.
PS I used a downloaded IDE, not the online version
-
RE: How to get UI Flow on to device?
When I boot up my m5stack (just got mine a few days ago), it really briefly shows a startup splash. In the splash screen an UIFlow icon and an option per button is shown. In this brief moment I have to press the third button quite fast and select usb connection (my WIFI connection does not yet work).
-
RE: M5Stack FIre Wifi can not connect
My WIFI has some underscores ("_") symbols, because I have opted out from google using my wifi signal using “_nomap”. These is the only special character symbol I'm using. Next to that it's a bit difficult to change the SSID, because we have like 20 different devices using it.
Is there some way to see if the name of my WIFI SIDD is the actual problem?
Thanks for the quick reply by the way!
-
M5Stack FIre Wifi can not connect
Good evening.
Today I got my M5Stack Fire, and I was trying to connect with my Wifi. Sadly this does not work yet. It's screens shows: "Problem. Not Connected to: SSIDName" after trying to connect.
- I have tried baking in the SSID / Password when I update the firmware (1.4.5.1) and have also tried the method with using the M5Stack as a wifi accespoint + updating the credentials with my phone, but both methods fail.
- I don't think I made a typo with the password, because I copy pasted that.
- I do use the "_" symbol in my SSID name, could that be an issue?
Is there some method to see why it's failing?
For the time being I only used M5Flow to program with by the way. Luckily connecting with USB works properly.