Embedded Tester Protocol (ETP) Library
Project description
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()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file etplib-0.2.1.tar.gz.
File metadata
- Download URL: etplib-0.2.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
478c53babf22e8632d94efb8753ef221096babd7fe6ee12c65e07d1e02135e03
|
|
| MD5 |
8343f98174b9d4d96c3f8415b2c37c7f
|
|
| BLAKE2b-256 |
e1dc1e402f588b987d0e999d2b967eea5113dafb3a1c1e52e1ded60451d6f84b
|
File details
Details for the file etplib-0.2.1-py3-none-any.whl.
File metadata
- Download URL: etplib-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f070117f9ea8ef105cdbb5e6b3a7e0f24cf7c65ac35eac46fc46ae2c878fbc5d
|
|
| MD5 |
bb202e524c8da3b0d6eb4a85526dfac6
|
|
| BLAKE2b-256 |
3fe9b70373c4086b296a4b72eec083b71d040d4c38240e638845c72498340180
|