Skip to content

Commit

Permalink
add basic readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpvar committed May 20, 2013
1 parent 8965fdd commit ca24ecf
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
@@ -1,11 +1,13 @@
{
"name": "avr",
"version": "0.0.0",
"version": "0.0.1",
"description": "avr project tools",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin" : {
"avr" : "/index.js"
},
"repository": {
"type": "git",
"url": "git://github.com/tmpvar/avr.git"
Expand Down
44 changes: 44 additions & 0 deletions readme.md
@@ -0,0 +1,44 @@
# avr

avr project tools

This module allows you to mix and match components for avr embedded development. You can either pull from github or a local directory and there is no need to modify a makefile.

## install

Make sure you have `avrdude`, `avr-gcc` and friends installed. On osx you can do that by installing [CrossPack](http://www.obdev.at/avrmacpack/) or using brew/macports

`npm install -g avr`

## use

`avr <command> <subcommands>`

### commands

#### init [path/to/project]

initialize the current directory as a new project or create the specified directory and initialize there

#### build

calls out to `avr-gcc` and compiles/links the sources specified in the `avr.json` file

`sources` found in `deps/*/avr.json` are also compiled and the resulting artifacts are put in `./build/`

#### flash

performs a `build` and invokes `avrdude` based on the settings in `avr.conf`

#### install [../path/to/project | githubuser/project]

puts a local copy of `project` into your `./deps/` directory

#### delete [project]

removes the local copy of project from `./deps/`


## license

MIT

0 comments on commit ca24ecf

Please sign in to comment.