Skip to main content

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 etplib using pip

    pip install etplib
    
  • 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


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.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

etplib-0.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: etplib-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for etplib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fb30fa5af26fd9c91e0513db0da3fcfa1a3de169f4e9157ee1ae5375ee883198
MD5 32330e83c80d3a4405de0a896ea9b1d3
BLAKE2b-256 549a81b9e247a5f002ddc6cb4b47622564d3474f605abaea197f38b5b0d2a676

See more details on using hashes here.

File details

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

File metadata

  • Download URL: etplib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for etplib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03f45cdb5f3f37fdf1e0b781126ac1a73e34200d26ce9fea9e593345cd13d617
MD5 07d30f8f7174554c9bb146fe4cb4187a
BLAKE2b-256 c4f2fbe2c00aa8116d5fccc93f9a07e1f5e5f6f0bf54f1adb29273419baed703

See more details on using hashes here.

Supported by

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