Arduino草图生成器
sketchduino的Python项目详细描述
此工具的下一版本将于2013年7月16日发布,前提是达到下一版本的所有要求。
Arduino IDE是一个非常好的工具,当您学习为 AVR系列微控制器,但它成为 结构化项目。鉴于这些困难,决定 创建一个工具来自动创建和维护项目。
SketchDuino将创建一个完整的项目 使用以下结构创建:
- 二进制(编译过程的结果)
- lib(projetct future的自定义库)
- 包括(projetct future的自定义库)
- src(项目代码)
- tmp(编译器进程的临时文件)
如何安装
安装sketchduino非常简单,因为它是一个python工具,您可以 使用工具easy_install安装,或者pip是第二多 推荐。
查看如何使用简易安装进行安装:
^{tt1}$
将安装此命令及其依赖项SketchDuino 网站包python。
现在看如何使用pip安装:
^{tt2}$
将安装此命令及其依赖项SketchDuino 网站包python。
它是兼容的
要运行此工具,您需要一个编译器。如果你想用 Arduino的变种,你需要安装Arduino IDE, 如果使用eat avr变量,则需要avr工具链gnu/gcc编译器。 在使用ARDUINO的情况下,在最大版本中存在限制。 可使用1.0.5。正在开发与下一版本的 但这还没准备好。
如何使用
SketchDuino是一个命令行工具,但是它的使用非常简单 可以轻松地与一些优秀的编辑器集成,如vim和 升华文本。让我们看看如何使用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.
命令帮助
这个工具的秘密是你的命令,你可以看到 使用以下命令的命令:
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.