Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 5c12556

Browse files
committed
Various fixes from reviewer feedback
1 parent 77b2ab8 commit 5c12556

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

examples/Firebase_ESP8266_LEDs/Firebase_ESP8266_Neopixel/Firebase_ESP8266_Neopixel.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <Adafruit_NeoPixel.h>
2323
#include "colors_ext.h"
2424

25-
#define PIN 13
25+
const int PIN=13;
2626
Adafruit_NeoPixel strip = Adafruit_NeoPixel(32, PIN, NEO_GRB + NEO_KHZ800);
2727

2828
#define JSON_BUFFER_SIZE 10*4
2929

3030
// TODO: Replace with your own credentials and keep these safe.
31-
Firebase fbase = Firebase("YOUR-PROJECT-ID.firebaseio.com")
31+
Firebase fbase = Firebase("YOUR-PROJECT.firebaseio.com")
3232
.auth("YOUR_AUTH_SECRET");
3333

3434
void setup() {
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Firebase Neopixel Web demo #
2+
3+
This demo console shows you how to synchronize data from the web to a device.
4+
5+
## Installation ##
6+
The demo uses [Bower](http://bower.io/) and
7+
[Polymer](http://www.polymer-project.org/) to simplify the UI and dependencies
8+
of the project.
9+
10+
For Bower, you need to install [Node.js](http://nodejs.org/). After node is
11+
installed, install the Bower package by calling:
12+
13+
`npm install -g bower`
14+
15+
After Bower is installed, you are ready to update the project dependencies with
16+
Bower by running:
17+
18+
`bower install`
19+
20+
With the dependencies set, serve the www folder from a web server. For example,
21+
you can use the Python Simple HTTP server module by running:
22+
23+
`python -m SimpleHTTPServer [port]`
24+
25+
With the web server running, navigate to /web-demo.html and you should see
26+
the demo load.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2>Paint Demo</h3>
3232
color="{{selectedColor}}"></polymer-color-picker>
3333
Pick a color then click a cell.
3434

35-
<!-- TODO: Switch to CSS, table is so basic. -->
35+
<!-- TODO: Switch to CSS and Polymer elements, table is so basic. -->
3636
<table border=1 style="width:800px; height:400px">
3737
<tr>
3838
<td id="pixel0" onClick="setColor('pixel0')"></td>

0 commit comments

Comments
 (0)