This release is a pre-release and may not be stable for production use.
# avr_helpers #
This package provides helper classes for interacting with the [AVR][1] tool-chain. It includes a copy of avrdude for Windows, and Linux _(32-bit and 64-bit)_, along with the avrdude.conf file from the [Arduino 1.0.5 IDE][2]. This allows stand-alone flashing of compile .hex firmware files.
[1]: http://en.wikipedia.org/wiki/Atmel_AVR [2]: http://arduino.cc/en/main/software
## avrdude API ##
The avr_helpers.AvrDude class implements an API for:
Scanning available serial ports for a connected device.
Flashing a .hex bit-stream file to an AVR device.
### AvrDude API Usage ###
>>> from avr_helpers import AvrDude >>> AvrDude? Type: type String form: <class ‘avr_helpers.AvrDude’> File: ... Init definition: AvrDude(self, protocol, microcontroller, baud_rate, conf_path=None, port=None) Docstring: ... >>> avr_dude = AvrDude(‘arduino’, ‘atmega168’, ‘19200’) >>> # `-D` disables erase cycle to speed up programming. >>> stdout, stderr = avr_dude.flash(‘blink.hex’, [‘-D’]) >>> print stdout>>> print stderravrdude-x64: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude-x64: Device signature = 0x1e9406 avrdude-x64: reading input file “blink.hex” avrdude-x64: writing flash (1056 bytes):
Writing | ################################################## | 100% 0.76s
avrdude-x64: 1056 bytes of flash written avrdude-x64: verifying flash memory against blink.hex: avrdude-x64: load data flash data from input file blink.hex: avrdude-x64: input file blink.hex contains 1056 bytes avrdude-x64: reading on-chip flash data:
Reading | ################################################## | 100% 0.68s
avrdude-x64: verifying … avrdude-x64: 1056 bytes of flash verified
avrdude-x64 done. Thank you.
Note that since the avrdude.conf file from the Arduino IDE is included in the avr_helpers package, the arduino protocol may be used, allowing easy flashing of pre-compiled .hex files to Arduino devices.
Metadata
Release files for avr_helpers 0.1.post3.dev153609906
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 |
|---|---|---|---|---|
| avr_helpers-0.1.post3.dev153609906.tar.gz | 943.2 kB | Without provenance | Details for avr_helpers-0.1.post3.dev153609906.tar.gz |
Release files / avr_helpers-0.1.post3.dev153609906.tar.gz
| Download URL | avr_helpers-0.1.post3.dev153609906.tar.gz |
|---|---|
| Size | 943.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58050e62745b25ab0becf97ba02ebfc911d4b27f14e2549d754c21e8810f75d3
|
|
BLAKE2b-256 checksum How to use checksums |
852a32ba9d209388ff1e319b2d9a7789a6d6c4b8418eb655b898352b8563f6c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for avr_helpers 0.1.post3.dev153609906
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.