Skip to content

Instantly share code, notes, and snippets.

@hackergrrl
Last active May 22, 2016 01:32
Show Gist options
  • Save hackergrrl/7436d4493b0b5daf5068fb82fa03423f to your computer and use it in GitHub Desktop.
Save hackergrrl/7436d4493b0b5daf5068fb82fa03423f to your computer and use it in GitHub Desktop.

1. register particle account

https://build.particle.io/signup

2. setup board

unpackage the board and plug it into your laptop

particle's "getting started" guide: https://docs.particle.io/guide/getting-started/intro/photon/

3. setup cli tool + connect to wifi

  1. install nodejs and npm: https://nodejs.org
  2. run npm install -g particle-cli
  3. run particle login and use your login credentials
  4. run particle setup + follow instructions to setup board
  5. LED should now be pulsing cyan
  6. hold SETUP and RESET buttons down on the board for a moment, then release RESET and keep holding MODE until the LED blinks yellow light

4. install dfu-util

windows

libusb setup

dfu-util

osx

  1. install homebrew: http://brew.sh
  2. run brew install dfu-util

linux

your distro's package manager probably has a package for you to install called dfu-util!

flash hardware

run particle flash --usb voodoo

johnny-five

  1. create a new directory and enter it in your terminal
npm install johnny-five
npm install particle-io
  1. follow the johnny-five setup instructions on http://johnny-five.io

you'll need your device name (from particle setup earlier) and device token (run particle config identify to see it) in the spots where it says PARTICLE_TOKEN and PARTICLE_DEVICE_ID

  1. run your program with node my-program-name.js

you're done!

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment