Navigation

    M5Stack Community

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

    dhed

    @dhed

    1
    Reputation
    5
    Posts
    751
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Switzerland

    dhed Follow

    Posts made by dhed

    • RE: Pure Micro Python without Ui-Flow on my M5Stack core2

      @purpledread
      I'm using VSCode with the PyMakr extension (see LeMaRiva's blog for install-instructions).
      Nice IDE with integrated serial-console for REPL and up-/downloading of files.

      But I guess any serial-console (i.E. PuTTY) should allow you to see error messages.
      Also check micropython.org for instructions to get a REPL over the serial port.

      posted in Micropython
      D
      dhed
    • RE: Pure Micro Python without Ui-Flow on my M5Stack core2

      @purpledread That link still works for me, but here it is uploaded to an alternative.

      posted in Micropython
      D
      dhed
    • RE: Pure Micro Python without Ui-Flow on my M5Stack core2

      @favnec5
      My workaround for this (known) problem:

      1. during boot mount the sdcard and load files to ram
      2. then unmout the sdcard
      3. initialize the display

      something like:

      import uos
      from machine import Pin, SDCard
      
      sdcard = SDCard(slot=2, sck=Pin(18), miso=Pin(38), mosi=Pin(23),  cs=Pin(4), freq=40000000)
      uos.mount(sdcard, '/sd')
      ...
      uos.umount('/sd')
      sdcard.deinit()
      

      before initializing the display:

      from ili9XXX import ili9341
      lcd = ili9341(spihost=1, mosi=23, miso=38, clk=18, dc=15, cs=5, invert=True, rot=0xC0, width=320, height=240, rst=-1, power=-1, backlight=-1)
      

      I'm loading weathericons to use with openweathermap that way.

      posted in Micropython
      D
      dhed
    • RE: Pure Micro Python without Ui-Flow on my M5Stack core2

      @favnec5 said in Pure Micro Python without Ui-Flow on my M5Stack core2:

      @dhed
      hi Dhed, is it possible for you to share the last bin pure lv_micropython firmware for M5CORE ?
      it's been several days i 'm trying to compile it but i'm a win64 user... it's hard for me.

      Here's my compiled firmware: zippyshare-link.
      Should be flashable with:

      esptool.py --chip esp32 -p COM3 -b 460800 erase_flash
      esptool.py -p COM3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 16MB 0x8000 partition-table.bin 0x1000 bootloader.bin 0x10000 micropython.bin
      

      (flashing works even under Windows with the ESP-IDF toolchain installed)

      posted in Micropython
      D
      dhed
    • RE: Pure Micro Python without Ui-Flow on my M5Stack core2

      The latest lv_micropython can be built for the 'M5CORE2'-board.
      (I used ESP-IDF v4.0.2 on Ubuntu 20.04)

      Stuff I tested successfully on my M5Core2:

      • display with lvgl widgets
      • touchscreen
      • WLAN
      • RTC
      • SDCard (read)

      Might be interesting for people searching pure Micropython + lvgl on the Core2.

      posted in Micropython
      D
      dhed