Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c12556

Browse files
committed
Various fixes from reviewer feedback
1 parent77b2ab8 commit5c12556

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-
#definePIN13
25+
constint PIN=13;
2626
Adafruit_NeoPixel strip = Adafruit_NeoPixel(32, PIN, NEO_GRB + NEO_KHZ800);
2727

2828
#defineJSON_BUFFER_SIZE10*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
voidsetup() {
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.

‎examples/Firebase_ESP8266_LEDs/Firebase_ESP8266_Neopixel-web/web-demo.htmlrenamed to‎examples/Firebase_ESP8266_LEDs/www/web-demo.html

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
<tableborder=1style="width:800px; height:400px">
3737
<tr>
3838
<tdid="pixel0"onClick="setColor('pixel0')"></td>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp