attiny-common
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -20,2 +20,7 @@ /* | ||
var MODULE_ID_CMD = 0x08; | ||
/* | ||
ATTINY needs this long reboot & set up | ||
SPI controller (determined experimentally) | ||
*/ | ||
var REBOOT_TIME = 150; | ||
@@ -28,3 +33,3 @@ | ||
this.irq = hardware.digital[2].rawWrite(false); | ||
this.spi = hardware.SPI({clockSpeed : 1000, mode:2, chipSelect:this.chipSelect, chipSelectDelayUs:500}); | ||
this.spi = hardware.SPI({clockSpeed : 1000, dataMode:2, chipSelect:this.chipSelect, chipSelectDelayUs:500}); | ||
this.transmitting = false; | ||
@@ -128,4 +133,4 @@ this.listening = false; | ||
this.reset.high(); | ||
// for Tessel 2, need to wait .1 seconds so that the attiny will reboot before acking | ||
setTimeout(callback, 100); | ||
// Time needed for attiny to reboot | ||
setTimeout(callback, REBOOT_TIME); | ||
} | ||
@@ -132,0 +137,0 @@ |
{ | ||
"name": "attiny-common", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A common library for Tessel's ATTiny based modules", | ||
@@ -19,3 +19,3 @@ "main": "./lib/index.js", | ||
"dependencies" : { | ||
"avr-isp": "0.0.4", | ||
"avr-isp": "0.0.5", | ||
"sync-queue" : "~0.0.1" | ||
@@ -22,0 +22,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22720
472
+ Addedavr-isp@0.0.5(transitive)
- Removedavr-isp@0.0.4(transitive)
Updatedavr-isp@0.0.5