Giter Site home page Giter Site logo

chrome-app-pinoccio's Introduction

pinoccio-chrome-app

Available messages to send

###waitForUnplug This will cause the system to watch the USB devices and report when it no longer sees a Pinoccio device connected.

Arguments:

  • cancel - (Boolean) - On true this will cancel a previously running unplug loop.
  • interval - (Number) - The number of milliseconds to wait between checks. This is REQUIRED and is suggested around 250 for responsiveness.

Response:

  • unplugged - (Boolean) - Exists and is true if the device was detected unplugged.
  • msg - (String) - Helpful message of what happened.
  • error - (String) Exists only if an error occurs and provides some information as to why.

###fetchAndProgram This will fetch a hex program file from a remote site and flash it onto the connected board.

Arguments:

  • url - (String) - url to download the hex program file from.

Response:

  • error - (String) Exists only if an error occurs and provides some information as to why.

An empty response ({}) is returned on a success.

###detect Checks that a Pinoccio device is connected and verifies that we can communicate with it.

Arguments:

  • timeout - (Number) - The number of milliseconds to wait in total before failing.

Response:

  • found - (Boolean) - true if we can detect the device is connected to USB.
  • isOn - (Boolean) - true if the device appears to be powered on and communication succeeds.
  • version - (Static String) - Currently statically returns 1.0
  • error - (String) Exists only if an error occurs and provides some information as to why.

###forget Resets the internal connected device to none.

###bitlash Runs the given bitlash command and returns a result.

Arguments:

  • command - (String) - The bitlash command to run. This is trimmed of whitespace.

Response:

  • result - (String) - The raw results of the bitlash command as a string.
  • error - (String) Exists only if an error occurs and provides some information as to why.

###program This will flash a passed in program, prefer fetchAndProgram currently. ###close Currently a noop

chrome-app-pinoccio's People

Contributors

jingman avatar matthijskooijman avatar erictj avatar

Watchers

Adam Hunt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.