Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. wsanders
    3. Best
    W
    • Continue chat with wsanders
    • Start new chat with wsanders
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by wsanders

    • RE: UIFlow "Invalid Syntax"?

      This was caused by a missing double quotation mark in a file name in an "Execute code" block.....

      posted in General
      W
      wsanders
    • UIFlow: How to try/except for "Connect to Wifi"?

      I am trying to get the program to ignore failure to connect to WiFi. I tried to place a Wifi Connect block inside a try/except (with a bogus SSID/password):

      0_1650495158697_Screenshot_20220420_155223.png

      Instead, the program hangs, before the LED comes on, because the python that gets generated places the wifiCfg.doConnect up at the top of the program (line 20):
      0_1650495658652_Screenshot_20220420_160048.png
      and the try/except block is empty, much later in the program at line 87:
      0_1650495590491_Screenshot_20220420_155937.png

      Is there a way to create an exception for WiFi failure to connect?

      I also notice that UIFlow does not have a "pass" block. I just put a wait() in mine - ???

      posted in General
      W
      wsanders
    • RE: UIFlow: How to try/except for "Connect to Wifi"?

      @wsanders SOLUTION: Use "Original Network Function" blocks instead.

      posted in General
      W
      wsanders
    • RE: M5StickC-Plus Buzzer not working

      Using //https://101010.fun/iot/m5stickc-plus-firststep.html
      for inspiration, we can upload this program:

      #include <M5StickCPlus.h>

      void setup() {
      M5.begin();
      M5.Lcd.setTextSize(3);
      M5.Lcd.setRotation(3);
      M5.Lcd.setTextColor(TFT_ORANGE);
      }

      void loop() {
      M5.update();
      soundTest();
      }

      void soundTest() {
      for (int tone=100; tone < 4000; tone=tone+50) {
      M5.Lcd.fillScreen(BLACK);
      M5.Lcd.setCursor(80, 50);
      M5.Lcd.printf("%d", tone);
      M5.Beep.tone(tone);
      M5.Beep.update();
      delay(200);
      }
      }

      According to my ears there is a definite peak about 2500 Hz, with frequencies under 250 Hz and over 3000 not audible. Your ears may vary .....

      posted in Arduino
      W
      wsanders