Embedded Tester Protocol (ETP) library for Python
etplib allows access to microcontroller peripherals from a host computer. Microcontroller should be running the ETP firmware.
Inital setup
- Install
etplibusing pippip install etplib
Flashing ETP firmware
Arduino Uno
-
Download ETP firmware for Arduino Uno
-
Flash ETP firmware to the Arduino Uno using
avrdude(Get avrdude here)avrdude -v -p atmega328p -c arduino -P COM4 -b 115200 -D -U flash:w:etp_fw_arduino_uno_v0.1.0.hex:i
NOTE : Replace
COM4with the port where the Arduino Uno is connected
ESP32
- Download ETP firmware package for ESP32
- Install
esptoolusing pippip install esptool
- Run
flash.bat(Windows) orflash.sh(Linux) to flash the ETP firmware to the ESP32
NOTE : ETP firmware for ESP32 is experimental !
Usage
Blink LED
import etplib
import time
etp = etplib.ETP(transport='serial', port='COM4', baudrate=115200)
etp.open()
etp.reset()
etp.gpio.init({"_13": "output"})
# Blink LED on pin 13 of the Arduino Uno
while True:
etp.gpio_write({"_13": 1})
time.sleep(1)
etp.gpio_write({"_13": 0})
time.sleep(1)
etp.close()
Metadata
Release files for etplib 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| etplib-0.2.1.tar.gz | 11.2 kB | Without provenance | Details for etplib-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| etplib-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for etplib-0.2.1-py3-none-any.whl |
Total release size: 25.1 kB
Release files / etplib-0.2.1.tar.gz
| Download URL | etplib-0.2.1.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
478c53babf22e8632d94efb8753ef221096babd7fe6ee12c65e07d1e02135e03
|
|
BLAKE2b-256 checksum How to use checksums |
e1dc1e402f588b987d0e999d2b967eea5113dafb3a1c1e52e1ded60451d6f84b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.8
|
Release files / etplib-0.2.1-py3-none-any.whl
| Download URL | etplib-0.2.1-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f070117f9ea8ef105cdbb5e6b3a7e0f24cf7c65ac35eac46fc46ae2c878fbc5d
|
|
BLAKE2b-256 checksum How to use checksums |
3fe9b70373c4086b296a4b72eec083b71d040d4c38240e638845c72498340180
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.8
|
Security for etplib 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.