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, ESP-NOW, RMT, 1-Wire, CAN, I2S, files, NVS, OTA

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.3.2.tar.gz (101.9 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.3.2-py3-none-any.whl (79.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_esp_bridge-0.3.2.tar.gz
  • Upload date:
  • Size: 101.9 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.3.2.tar.gz
Algorithm Hash digest
SHA256 c38a2c776c4470225193e99ec7a3c40a9ba127434771af91f4d99cf6e3ac0c0d
MD5 0f63e5bf9a7a929b3350dd2dfe0db131
BLAKE2b-256 2492eca6b55a0c4baec0275b5c5ea580c5a660d23d7d2ce425cd2d210f800c54

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_esp_bridge-0.3.2.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.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_esp_bridge-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74c7e2a36d50c9d3cb64a3a556b1fd71c9acc3a5a59be44a0d72b1694424c9fb
MD5 55a12be82096dba40bb31f604ef79756
BLAKE2b-256 7a7068b7f6b8bd9103ca7844dfefd1bba508fbc60880d8aa8591c7a6aa2de7c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_esp_bridge-0.3.2-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