Socket
Socket
Sign inDemoInstall

bs2-programmer

Package Overview
Dependencies
2
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs2-programmer


Version published
Maintainers
2
Created

Readme

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

Last updated on 15 Oct 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc