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

Commit4425425

Browse files
committed
examples/FirebaseNeoPixel: update README & layout
- rename www to public- add arduino and firebase hosting instructions
1 parentec14b0f commit4425425

File tree

5 files changed

+56
-28
lines changed

5 files changed

+56
-28
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#FirebaseNeoPixel
2+
3+
FirebaseNeoPixel is a sample that shows how to set pixel data from Firebase web app.
4+
5+
##Hardware setup
6+
7+
1. Get a[Feather Huzzah](https://www.adafruit.com/product/2821)
8+
1. Get a[FeatherWing NeoPixel](https://www.adafruit.com/product/2945)
9+
1. Cut the default jumper and[solder](https://learn.adafruit.com/adafruit-neopixel-featherwing/pinouts) the one forfor`pin13`
10+
1. Solder female headers on the`Feather Huzzah`
11+
1. Solder mail headers on the`FeatherWing NeoPixel`
12+
1. Stack the`FeatherWing NeoPixel` on top of the`Feather Huzzah`
13+
14+
##Software setup
15+
16+
1. Install[Arduino 1.6.9](https://www.arduino.cc/en/Main/Software)
17+
1. Install[Arduino ESP8266 core](https://github.com/esp8266/Arduino#installing-with-boards-manager)
18+
1. Download[FirebaseArduino library](https://github.com/googlesamples/firebase-arduino/archive/master.zip)
19+
1. Start Arduino
20+
1. Click`Sketch > Include Library > Add .ZIP Library...`
21+
1. Choose`firebase-arduino-master.zip` downloaded in step`3.`
22+
1. Install the following libraries using`Sketch > Include Library > Manage Libraries...`:
23+
-[Adafruit_NeoPixel](https://github.com/adafruit/Adafruit_NeoPixel)
24+
25+
##Configuration
26+
27+
1. Go tohttps://www.firebase.com/ and create a new Firebase
28+
1. Copy the`Firebase Hostname`
29+
1. Go to`Secrets`
30+
1. Click`Firebase Secrets > Show`
31+
1. Copy the`Firebase Secret`
32+
1. Start Arduino
33+
1. Click`File > Examples > FirebaseArduino > FirebaseRoom_ESP8266`
34+
1. Replace`SSID` and`PASSWORD` with WiFi credentials
35+
1. Replace`example.firebaseio.com` with the`Firebase Hostname` from step`2.`
36+
1. Replace`secret_or_token` with`Firebase Secret` from step`5.`
37+
1. Click`Sketch > Upload`
38+
1. Open`public/index.html` with a text editor
39+
1. Replace`example.firebaseio.com` with the`Firebase Hostname` from step`2.`
40+
1. Replace`secret_or_token` with`Firebase Secret` from step`5.`
41+
1. Deploy the`public` directory to Firebase hosting
42+
```
43+
npm install -g firebase-tools bower
44+
(cd public && bower install)
45+
firebase login
46+
firebase init
47+
firebase deploy
48+
```
49+
50+
##Play
51+
52+
1. Go to the firebase hosting URL:`firebase-name.firebaseapp.com`
53+
1. Use the color picker and paint the NeoPixel table
54+
1. Watch the NeoPixel being updated to the matching color
File renamed without changes.
File renamed without changes.

‎examples/FirebaseNeoPixel_ESP8266/www/index.html‎renamed to ‎examples/FirebaseNeoPixel_ESP8266/public/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</head>
2424
<script>
2525
// TODO: Needs security.
26-
varfirebaseUrl='https://YOUR_FIREBASE_URL.firebaseio.com';
27-
varfirebaseSecret='YOUR_FIREBASE_SECRET';
26+
varfirebaseUrl='https://example.firebaseio.com';
27+
varfirebaseSecret=secret_or_token;
2828
</script>
2929
<body>
3030
<h2>Paint Demo</h3>

‎examples/FirebaseNeoPixel_ESP8266/www/README.md‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp