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.
-------
 build
    Performs project build according to the settings, only compiles what
    has changed since the last compilation if cache.

 clean
    Performs cleaning the last compilation.

 deploy
    Command not implemented yet.

 variant-list
    List of variantes of projects for arduino and AVR project.

 create
    Handles the project.

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

 show
    Displays current configuration information of the project.

 update
    Handles the project.

 library-list
    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 details)

Uploaded Source

File details

Details for the file sketchduino-0.5.4.tar.gz.

File metadata

  • Download URL: sketchduino-0.5.4.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sketchduino-0.5.4.tar.gz
Algorithm Hash digest
SHA256 ad70a973123d27308a76a9504216210c1157029a0d998d29e7c73eca1053df1d
MD5 b00dd8c45384116b0f8f704560ae7a71
BLAKE2b-256 c5e110d77baefa0ee20236217d30f20c8a95bc7903e2bb7005308c823217af13

See more details on using hashes here.

Supported by

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