Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • YouTube
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

SG Community Forum

  1. Home
  2. Comments & Feedback
  3. Bringing Pycom LoPy/LoPy4 back to life on upstream MicroPython — collaboration welcome!

Bringing Pycom LoPy/LoPy4 back to life on upstream MicroPython — collaboration welcome!

Scheduled Pinned Locked Moved Comments & Feedback
1 Posts 1 Posters 317 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ddtdaniloD Offline
    ddtdaniloD Offline
    ddtdanilo
    wrote on last edited by
    #1

    Hi everyone,

    I’m Danilo, and I’ve been working on adding official board support for the Pycom LoPy and LoPy4 to the upstream MicroPython project (v1.27.0+, ESP-IDF v5.4/v5.5.1).

    As many of you know, Pycom’s MicroPython fork was archived in September 2024 (last commit February 2022), leaving LoPy/LoPy4 owners stuck on an ancient codebase based on MicroPython ~v1.20. I wanted to change that.

    What’s been done so far:

    • Board definitions for both PYCOM_LOPY (ESP32 + SX1272) and PYCOM_LOPY4 (ESP32 + 8MB flash + 4MB PSRAM + SX1276)
    • A unified SX1272/SX1276 LoRa driver in Python (the only one in the MicroPython ecosystem that supports both chips)
    • LoRaWAN 1.0.x MAC layer with OTAA and ABP activation (Class A)
    • OTA firmware update support (dual app partitions)
    • Named pin mapping (P0-P23 + LORA_* pins) matching Pycom documentation
    • Hardware validation test scripts
    • All four build configurations compile successfully (LoPy, LoPy4, LoPy OTA, LoPy4 OTA)
    • A MicroPython contributor (robert-hh) has already done a trial build and confirmed WiFi works on actual LoPy4 hardware!

    Pull Requests currently open:

    • Main PR (board definitions + driver + LoRaWAN + OTA + tests): https://github.com/micropython/micropython/pull/19026
    • Board images: https://github.com/micropython/micropython-media/pull/116
    • SX127x driver + LoRaWAN packages for micropython-lib: https://github.com/micropython/micropython-lib/pull/1102

    Why this matters:

    With this port, LoPy/LoPy4 owners get access to 7 years of MicroPython improvements: f-strings, async/await, proper asyncio, TLS 1.3, BLE 5.0, WPA3, and thousands of bug fixes. All while keeping LoRa functionality.

    Collaboration welcome!

    Since SG Wireless now maintains the Pycom legacy, I’d love to collaborate. If anyone from the SG Wireless team or the community would like to help with testing, reviewing, or extending this work (e.g., adding support for FiPy, GPy, or other Pycom boards), please feel free to jump in! The PRs are open and ready for review.

    If you have a LoPy or LoPy4 board gathering dust, now’s a great time to dust it off!

    Cheers,
    Danilo

    1 Reply Last reply
    1

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • YouTube