Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. sjako
    S
    • Continue chat with sjako
    • Start new chat with sjako
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    sjako

    @sjako

    0
    Reputation
    15
    Posts
    1227
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sjako Follow

    Posts made by sjako

    • RE: [Solved] Poweroff M5Stack using uiflow?

      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.

      posted in M5Stack Fire
      S
      sjako
    • 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 =)

      posted in M5Stack Fire
      S
      sjako
    • [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.

      posted in M5Stack Fire
      S
      sjako
    • 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...

      0_1594761550447_86667f6b-46a7-4a8a-b83b-7735b2bc6a32-image.png

      posted in M5Stack Fire
      S
      sjako
    • RE: M5Flow Blockly Screen rotate issue

      Thanks, much appreciated!

      posted in M5Stack Fire
      S
      sjako
    • RE: UIFlow 1.5.4

      @m5stack Thanks, I found it, it was a bit hidden =)

      0_1593031647552_a64288c4-3828-4f86-bed7-c2c0b9055d92-image.png

      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

      0_1593031740308_81b0463c-0da4-43f5-9847-4b748577960d-image.png

      posted in Official Updates
      S
      sjako
    • RE: M5Flow Blockly Screen rotate issue

      Does anybody have any clue why this happens? Should the screen only be rotated once?

      posted in M5Stack Fire
      S
      sjako
    • 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)

      posted in Official Updates
      S
      sjako
    • 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:
      0_1590177150236_944a0098-9359-4515-9362-d286beb9aaf9-image.png

      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

      posted in M5Stack Fire
      S
      sjako
    • 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.

      posted in UIFlow
      S
      sjako