Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controlKnob.html → docs/controlKnob.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<HTML>
<HEAD>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="http://anthonyterrien.com/js/jquery.knob.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-Knob/1.2.13/jquery.knob.min.js"></script>
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">

</HEAD>
Expand Down
2 changes: 1 addition & 1 deletion firmware/examples/7_Internet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Useful info, like how to access the data from your browser, can be
found here: https://docs.particle.io/reference/firmware/photon/#particle-function-

The code to control the number of illuminated LEDs is here:
https://github.com/spark/InternetButton/blob/master/controlKnob.html
https://github.com/spark/InternetButton/blob/master/docs/controlKnob.html
Try naming one of your devices "InternetButton" and running controlKnob in your browser or on your phone!
Note that the Core or Photon *must* be named "InternetButton" because the javascript looks for it.
*/
Expand Down
27 changes: 27 additions & 0 deletions verified/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Library verification for Internet Button
The purpose of this test is to verify the current Internet Button library from our community. To make sure all the others can feel comfortable to use this library in their project. This verification code is based the Particle platform.

### Preparation for running this firmware.
* Photon
* An Internet Button (https://store.particle.io/products/internet-button)
* MicroUSB Cable
* Particle Web IDE

### Library version list
* internetbutton library `0.1.10`

### Verify process

To make sure the Internet Button library works as expected, will go through each example.

1. Setup a new Photon
2. Attached an Internet Button to it
3. Flashed `1_BLINK_AN_LED`. Works as expected, and a single LED blinks blue.
4. Flashed `2_BLINK_ALL_THE_LEDS`. All the LEDS blink blue.
5. Flashed `3_BUTTONS_AND_LEDS`. Pressing on the second button turns on the LED.
6. Flashed `4_GOOD_COMBINATION`. Pressing on each button turns on the corresponding LED (the one above).
7. Flashed `5_MOTION`. Rotating the Internet Button changes the colors.
8. Flashed `6_ORIENTATION`. Rotating the Internet Button lights up the LED on the bottom.
9. Flashed `7_INTERNET`. Changed the device name to "InternetButton". Downloaded the example code from the description, and opened the HTML file in Chrome. Clicking on different parts of the knob lights up the right LEDS.
10. Flashed `8_MAKINGMUSIC`. Pressing on buttons produces different musical notes.
11. Flashed `9_RELEASEFIRMWARE`. Clicking on buttons turns on the LEDS. API calls to functions work.