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

bs2-programmer

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs2-programmer

Upload tokenized hex to Basic Stamp 2

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
2
Weekly downloads
 
Created
Source

#bs2-programmer

Build Status

Upload tokenized hex to Basic Stamp 2.

#note

  • Currently only uploads to BS2, not 2e, 2sx, etc.
  • You need newer drivers

#install

Install node.js. Then cd to this directory and install dependencies from source:

npm install

#examples

To upload the debug "Hi" example to your device, from the main directory type:

node examples/hi.js yourttyporthere

You should see something like:

Jacobs-MacBook-Air-2:bs2-programmer jacobrosenthal$ node examples/hi.js /dev/tty.usbserial-A502BMUQ
success  { name: 'BS2', version: '1.0' }
Jacobs-MacBook-Air-2:bs2-programmer jacobrosenthal$

#api

##bootload

bootload(stream, hex, cb)
  • Uploads your hex of Node Buffer of tokenized data.
  • Takes a previously opened, reset stream-style object (See the example for details) and a Node buffer of tokenized bytes to send.
  • Callback has singature (error, object) where object is a version object like { name: 'BS2', version: '1.0' }

##identify

identify(stream, revision, cb)
  • Called for you by bootload, but exposed for your convenience.
  • Takes a previously opened, reset stream-style object (See the example for details) and a Node buffer of tokenized bytes to send.
  • Callback has singature (error, object) where object is a version object like { name: 'BS2', version: '1.0' }

FAQs

Package last updated on 22 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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