pyavrutils can build AVR and arduino code from python
Project description
pyavrutils can build AVR and arduino code from python
- Links:
documentation: http://ponty.github.com/pyavrutils
- Features:
python wrapper for avr-gcc, avr-size, arscons
build files or strings (strings are saved as temp files)
MCU list
get code size using avr-size
avr-gcc default is optimized for size
- Known problems:
Python 3 is not supported
temp files are not removed
- arscons has some problems:
it builds bigger programs
compile error in some cases
- Possible usage:
Basic usage
>>> from pyavrutils import AvrGcc >>> cc = AvrGcc() >>> cc.build('int main(){}') >>> cc.size().program_bytes 66>>> from pyavrutils import Arduino >>> cc = Arduino() >>> cc.mcu = 'atmega8' >>> cc.build('void setup(){};void loop(){}') >>> cc.size().program_bytes 1612
Installation
General
if you have setuptools installed:
# as root easy_install pyavrutils
Ubuntu
sudo apt-get install python-setuptools sudo apt-get install binutils-avr sudo apt-get install gcc-avr sudo apt-get install scons sudo apt-get install arduino sudo easy_install pyavrutils
Uninstall
using pip:
# as root pip uninstall pyavrutils
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
pyavrutils-0.0.3.tar.gz
(34.3 kB
view details)
File details
Details for the file pyavrutils-0.0.3.tar.gz.
File metadata
- Download URL: pyavrutils-0.0.3.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dcecc1b854b8189b6a0be57b80af5c315ce6090522f8ec17b27e395817837c4
|
|
| MD5 |
d69a362afba698d831cd98927eb57ba2
|
|
| BLAKE2b-256 |
76db59670ac5ce0e92c8379a37ee328ec2c6aaa1ef04e60688cb9647dced8b66
|