Skip to main content

Control every ESP32 peripheral from Python over USB serial or Bluetooth — GPIO, ADC, DAC, PWM, touch, I2C, SPI, UART, Wi-Fi sockets, BLE

Project description

python-esp-bridge

Control every ESP32 peripheral from Python over USB serial — GPIO, PWM, ADC, DAC, touch, I2C, SPI, UART, Wi-Fi (with TCP/UDP sockets through the ESP32 radio) and BLE. Flash the bridge firmware once, then it's all Python.

from espbridge import Bridge

with Bridge() as esp:                      # auto-detects the USB port
    esp.gpio.mode(2, "output")
    esp.gpio.write(2, 1)
    print(esp.adc.read_mv(34), "mV")
    esp.i2c.init(sda=21, scl=22)
    print(esp.i2c.scan())
    esp.wifi.connect("ssid", "password")
    status, body = esp.net.http_get("http://example.com/")
  • Firmware (flash once with Arduino IDE) and full docs: https://github.com/HamzaYslmn/python-esp-bridge
  • Works on Raspberry Pi OS, Linux, Windows, macOS (Python ≥ 3.10, pyserial).
  • espbridge CLI: connection info; espbridge ports: list candidate ports.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_esp_bridge-0.1.1.tar.gz (76.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_esp_bridge-0.1.1-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file python_esp_bridge-0.1.1.tar.gz.

File metadata

  • Download URL: python_esp_bridge-0.1.1.tar.gz
  • Upload date:
  • Size: 76.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_esp_bridge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d2737df7b9f6691804733539f0978fa0d664ce863adb3f3109d05c4d04fecbff
MD5 a1c2e47a4401da0b9fec003b4088323e
BLAKE2b-256 03f8e6556bb9c1661c5f6463e7326ee16af3e69d230e62cf80590e58a99080fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_esp_bridge-0.1.1.tar.gz:

Publisher: pypi.yml on HamzaYslmn/python-esp-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_esp_bridge-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_esp_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 deeaa528672055295c62f4796c64c88fb2389de50782c273dac878791896f213
MD5 70119942257bb3902a5372880a952239
BLAKE2b-256 e6dadf525b77ba081897c3df72cce905b6a7e8ce4205cdfc47edb6a2f220e980

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_esp_bridge-0.1.1-py3-none-any.whl:

Publisher: pypi.yml on HamzaYslmn/python-esp-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page