Skip to main content

Arduino Sketch Generator

Project description

The next version of this tool on 07/16/2013 previta to be published at any time, provided that all requirements for the next release is reached.

Build Status PyPy compatible

The Arduino IDE is a very good tool when you are learning to develop for AVR family of microcontrollers, but it becomes a barrier to more structured projects. In view of these difficulties it was decided to create a tool to automate the creation and maintenance of projects.

The sketchduino will create a complete project, a project will be created with the following structure:

  • binary (result of compile processes)

  • lib (custom libraries of projetct future)

  • include (custom libraries of projetct future)

  • src (the code of you project)

  • tmp (temporary files of processes of compiler)

How to install this

To install sketchduino is very simple, as it is a python tool you can install it using the tool easy_install or pip is the second most recommended.

See how we can install using easy_install:

root@host ~/ # easy_install -U sketchduino

With this command will be installed and its dependencies sketchduino Site Packages Python.

Now see how to install using pip:

root@host ~/ # pip install -U sketchduino

With this command will be installed and its dependencies sketchduino Site Packages Python.

Its is compatible

To run this tool you will need a compiler. If you want to build projects with variants of Arduino, you will need to have the installation of the Arduino IDE, if working eat AVR variant you need the AVR toolchain Gnu / GCC Compiler. In the case of using Arduino, there is a limitation in the maximum version 1.0.5 may be used. Is being developed compatibility with the next version of the Arduino IDE but this is not yet ready.

How to use this

The sketchduino is a command line tool, but its use is very simple and can be easyly integrated with some good editor such as Vim and SublimeText. Let’s see how to use sketchduino.

user@host ~/ $ sketchduino --help
usage: sketchduino [-h] [--processor MCU] [--clock CLOCK] [--sdk SDK_HOME]
                   [--avr AVR_HOME] --cmd COMMAND [--project PROJECT_HOME]
                   [--programer PROGRAMER] [--variant VARIANT]

The Arduino Sketch utiliter

optional arguments:
  -h, --help            show this help message and exit
  --processor MCU       The name of Microcontroler Unit.
  --clock CLOCK         The clock of Microcontroler Unit in MHz.
  --sdk SDK_HOME        The path for SDK of arduino.
  --avr AVR_HOME        The path for AVR/GNU compiler.
  --cmd COMMAND         The command for Sketch utility.
  --project PROJECT_HOME
                        The home directory for project.
  --programer PROGRAMER
                        The programer hardware for deploy you firmwire.
  --serial SERIAL       The serial port for comunication with hardware.
  --variant VARIANT     The variante of your arduino.

Command Help

The secret of this tool is are your commands and you can see the list of commands with the following command:

user@host ~/ $ sketchduino --cmd help
Start of Arduino Sketch Utility.
    Performs project build according to the settings, only compiles what
    has changed since the last compilation if cache.

    Performs cleaning the last compilation.

    Command not implemented yet.

    List of variantes of projects for arduino and AVR project.

    Handles the project.

    Performs cleaning the cache and performs compile a new build complete.

    Displays current configuration information of the project.

    Handles the project.

    Command not implemented yet.

End of Arduino Sketch Utility.

Use sample

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

sketchduino-0.5.4.tar.gz (10.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page