Navigation Menu

Skip to content

Commit

Permalink
ee491: Script to demo each of the features.
Browse files Browse the repository at this point in the history
  • Loading branch information
NGenetzky committed Nov 14, 2018
1 parent 847e013 commit 365a0b2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions demo_particle_cli.sh
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -x

device=Logan
particle list $device

particle call $device "get" "" # [sw3, sw2, sw1, led3, led2, led1, board_led]
particle call $device "digitalread" "D4" # sw1

particle call $device "set" "97" # [sw3, sw2, sw1, led3, led2, led1, board_led]
particle call $device "digitalwrite" "D0=LOW" # board_led

particle call $device "reg" "2" # POT1=A0
particle call $device "analogread" "A0" # POT1=A0



0 comments on commit 365a0b2

Please sign in to comment.