Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

attiny-common

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attiny-common - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

11

lib/index.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc