Skip to main content

python wrapper for simavr which is AVR and arduino simulator.

Project description

pysimavr is a python wrapper for simavr which is AVR and arduino simulator

Links:
Features:
  • python wrapper using swig

  • object oriented interface on top of the generated interface

  • maximum speed can be real-time

  • serial communication

  • check simavr documentation

Known problems:
  • Python 3 is not supported

  • tested only on linux

  • low sound quality

  • more test needed

  • PWM simulation is not real-time

  • missing PWM modes

  • a lot of messages on stdout

Basic usage

>>> from pysimavr.avr import Avr
>>> avr=Avr(mcu='atmega48',f_cpu=8000000)
>>> firmware = Firmware('lcd.elf')
>>> avr.load_firmware(firmware)
>>> from pysimavr.serial import ArduinoSimSerial
>>> print ArduinoSimSerial(snippet='Serial.print("hello!");').serial()
hello!

Installation

check simavr doc: http://gitorious.org/simavr/pages/GetStarted

ignore these in simavr doc:
  • OpenGl (freeglut)

  • gcc-avr

  • avr-libc

  • make

General

  • install python

  • install setuptools

  • install swig (for source build only)

  • install header files and a static library for Python (for source build only)

  • install a compiler (for source build only)

  • install elf library

  • install the program:

    # as root
    easy_install pysimavr

Ubuntu

sudo apt-get install python-setuptools
sudo apt-get install swig
sudo apt-get install python-dev
sudo apt-get install gcc
sudo apt-get install libelf-dev
sudo easy_install pysimavr

Uninstall

first install pip:

# as root
pip uninstall pysimavr

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

pysimavr-0.0.1.tar.gz (169.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysimavr-0.0.1-py2.6-linux-i686.egg (982.6 kB view details)

Uploaded Egg

File details

Details for the file pysimavr-0.0.1.tar.gz.

File metadata

  • Download URL: pysimavr-0.0.1.tar.gz
  • Upload date:
  • Size: 169.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysimavr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2608069ea0bcf3d8c2a366920f765c8764287f96ed83c9a14f76b69dfda7c1e0
MD5 a15b8e93b36c5d0610957ce8cc889aaf
BLAKE2b-256 e92bdf2349e91218fb243b14837a8f930d29c8e6d24603c491124d3a38affd18

See more details on using hashes here.

File details

Details for the file pysimavr-0.0.1-py2.6-linux-i686.egg.

File metadata

File hashes

Hashes for pysimavr-0.0.1-py2.6-linux-i686.egg
Algorithm Hash digest
SHA256 90b22b83ba65b494d425414fd2e559de908bf197ca0782a21b19db88b1975976
MD5 d7448c2f5ecc23e537a6dc918c9510ff
BLAKE2b-256 b302cb3d471e32310bcd05ef67ef0f4b501a1427e4ee36a2e40a265156cb2a6e

See more details on using hashes here.

Supported by

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