Skip to content

Commit

Permalink
chip property is not required for Gemma or Trinket upon instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
noopkat committed Nov 2, 2015
1 parent 1950f2a commit 67a7b79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Which USBtinyISP programmer is being used? String values for supported programme

**options.chip**

*Note:* this property is not required if your programmer is an Arduino Gemma, Adafruit Gemma v2 , or Adafruit Trinket.

The chip property is an object that follows a strict format / signature. It specifies the configuration properties of the microchip you are using. You'll need to know and supply this configuration. You can find this from AVR Studio, the [avrgirl-chips-json package](https://www.npmjs.com/package/avrgirl-chips-json), or use the [AVRDUDE conf API](avrdude-conf.herokuapp.com). Pull requests to the [avrgirl-chips-json repo](https://github.com/noopkat/avrgirl-chips-json) with additional chips is most welcome.

Here is the required signature, provided as an example of the ATtiny85:
Expand Down
4 changes: 2 additions & 2 deletions avrgirl-usbtinyisp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var async = require('async');
var programmers = require('./lib/programmers');
var intelhex = require('intel-hex');
var fs = require('fs');

var chips = require('avrgirl-chips-json');
/**
* Constructor
*
Expand All @@ -23,7 +23,7 @@ function avrgirlUsbTinyIsp (options) {
this.options = {
sck: options.sck || C.SCK_DEFAULT,
debug: options.debug || false,
chip: options.chip,
chip: options.chip || chips.attiny85,
log: this.hackerLog, // for usbtinyisp lib
programmer: options.programmer || null
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"author": "Suz Hinton",
"license": "MIT",
"dependencies": {
"avrgirl-chips-json": "^2.0.1",
"async": "^1.4.2",
"buffer-equal": "0.0.1",
"usbtinyisp": "git://github.com/noopkat/usbtinyisp",
"intel-hex": "^0.1.1"
},
"devDependencies": {
"avrgirl-chips-json": "^2.0.1",
"istanbul": "^0.3.22",
"istanbul-coveralls": "^1.0.3",
"proxyquire": "^1.7.3",
Expand Down

0 comments on commit 67a7b79

Please sign in to comment.