pimoroni / pimoroni-pico-rp2350

MicroPython builds for Pimoroni Pico 2 / RP2350 boards.
37 stars 6 forks source link

Pico Plus 2: LTE and WiFi Support #10

Closed Gadgetoid closed 6 days ago

Gadgetoid commented 2 months ago

Note: This build is based upon the develop branch of Pico SDK and a customised fork of MicroPython based upon unmerged support for RP2350. It is, as such, multiple layers of experimental.

Expect regular bugfix releases and improvements.

I am adding the latest test builds to: https://github.com/pimoroni/pimoroni-pico-rp2350/releases/tag/v0.0.7

Replaces #5

Very basic test script for the built-in LTE Python module:

import gc
import lte
import time
import requests
con = lte.LTE(YOUR_CARRIER_APN_GOES_HERE)
con.start_ppp()

try:
    t_start = time.time()
    for x in range(2):
        gc.collect()
        print(gc.mem_free())
        irq_count = 0
        req= requests.get("https://shop.pimoroni.com/robots.txt")
        print(req)

finally:
    t_end = time.time()

    print(f"Took: {t_end - t_start} seconds")

    print("Disconnecting...")
    con.stop_ppp()
    print("Done!")
Gadgetoid commented 2 weeks ago

Note that Pico 2 support has been merged into mainline MicroPython (along with PPP) but we're still outstanding updates to WiFi support and our PSRAM pull-request before we'll have a feature-complete mainline build.