ATMEGA API
Provides an API for ATMEGA microcontroller through an FTDI USB device.
Installation: pip install atmega
Note: On linux the user should be in the group dialout and uucp
Local installation
Requirements
Install dependencies with pip: pip install -r requirements.txt
Install the library with pip: pip install .
Run tests: python setup.py test
Usage
import logging
from atmega.ram import RAM
# Set global logging level
logging.basicConfig(level=logging.INFO)
# Create device ram object
dev = RAM()
# Reset ram to 0x11
dev.reset(0x11)
# Set high baudrate
dev.change_baudrate(1000000)
# Dump ram into file
dev.dump_to_file("dump.txt")
# Close device
dev.close()
Release files for atmega 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atmega-0.0.2.tar.gz | 19.3 kB | Details |
Release files / atmega-0.0.2.tar.gz
| Download URL | atmega-0.0.2.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d097ba7a9cd031e9dc601bdca486c87ea3b3e35ed8a511c2b5302682940b3bee
|
|
BLAKE2b-256 checksum How to use checksums |
c81db4e227b5cc955f2f021826dbc476dfe24d88b16e073b1860f23100c415e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|