Embedded Tester Protocol (ETP) Library
Project description
Embedded Tester Protocol (ETP) library for Python
Inital setup
-
Download ETP firmware for Arduino Uno (the only supported device)
-
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
COM4
with the port where the Arduino Uno is connected
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
etplib-0.1.0.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file etplib-0.1.0.tar.gz
.
File metadata
- Download URL: etplib-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17611bb0e8d6f049b5ea789f7f2fd11c210be2db03877f4f7443788c43ec466f |
|
MD5 | b113e0b8b6904c68b8835e1f29b72081 |
|
BLAKE2b-256 | 2e6d50fe7f48c4510c51ac1ce2a1de65775b7a2145bd0deaf70d20d3218e0194 |
File details
Details for the file etplib-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: etplib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d606d105e17b88bf02af9883fcc64999823d3f8f1017d217c519aa517a868f30 |
|
MD5 | 4aae16a87020467d82121c7fffe25f1e |
|
BLAKE2b-256 | e5bfa4b09e2d8da2fa4faf8a61ed4149f08ad90b43fea6ae63e465e26de4ffe8 |