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

Commit65ccc07

Browse files
committed
Merge pull requestFirebaseExtended#141 from proppy/readme-sample-2
examples: add README for Demo and Stream example.
2 parentsc9f116a +268cd75 commit65ccc07

File tree

3 files changed

+78
-4
lines changed

3 files changed

+78
-4
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#FirebaseDemo
2+
3+
FirebaseDemo is a sample that shows basic usage of the`FirebaseArduino` API.
4+
5+
##Software setup
6+
7+
1. Install[Arduino 1.6.9](https://www.arduino.cc/en/Main/Software)
8+
1. Install[Arduino ESP8266 core](https://github.com/esp8266/Arduino#installing-with-boards-manager)
9+
1. Download[FirebaseArduino library](https://github.com/googlesamples/firebase-arduino/archive/master.zip)
10+
1. Start Arduino
11+
1. Click`Sketch > Include Library > Add .ZIP Library...`
12+
1. Choose`firebase-arduino-master.zip` downloaded in step`3.`
13+
14+
##Configuration
15+
16+
1. Go tohttps://www.firebase.com/ and create a new Firebase
17+
1. Copy the`Firebase Hostname`
18+
1. Go to`Secrets`
19+
1. Click`Firebase Secrets > Show`
20+
1. Copy the`Firebase Secret`
21+
1. Start Arduino
22+
1. Click`File > Examples > FirebaseArduino > FirebaseRoom_ESP8266`
23+
1. Replace`SSID` and`PASSWORD` with WiFi credentials
24+
1. Replace`example.firebaseio.com` with the`Firebase Hostname` from step`2.`
25+
1. Replace`secret_or_token` with`Firebase Secret` from step`5.`
26+
1. Click`Sketch > Upload`
27+
28+
##Play
29+
30+
1. Go to the Firebase console`Data` section
31+
1. Watch the data being modified as the sketch runs.

‎examples/FirebaseRoom_ESP8266/README.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#Firebase Room
1+
#FirebaseRoom
2+
3+
FirebaseRoom is a sample that shows basic usage of FirebaseArduino to push
4+
sensor data to Firebase, and trigger actuators from Firebase.
25

36
##Software setup
47

@@ -24,10 +27,11 @@
2427
1. Go tohttps://www.firebase.com/ and create a new Firebase
2528
1. Copy the`Firebase Hostname`
2629
1. Go to`Secrets`
27-
1. Click`Firebase Secrets >Shows`
30+
1. Click`Firebase Secrets >Show`
2831
1. Copy the`Firebase Secret`
2932
1. Start Arduino
30-
1. Click`File > Examples > firebase-arduino > FirebaseRoom_ESP8266`
33+
1. Click`File > Examples > FirebaseArduino > FirebaseRoom_ESP8266`
34+
1. Replace`SSID` and`PASSWORD` with WiFi credentials
3135
1. Replace`example.firebaseio.com` with the`Firebase Hostname` from step`2.`
3236
1. Replace`secret_or_token` with`Firebase Secret` from step`5.`
3337
1. Click`Sketch > Upload`
@@ -40,7 +44,7 @@
4044
1. Same for`cooldown` and`brrr`
4145
1. Press the push button in the room
4246
1. Watch the`pushbutton` value change in the Firebase console
43-
1. Putyour hand on the light sensor
47+
1. Putone hand on the light sensor
4448
1. Watch the`sunlight` value change in the Firebase console
4549

4650
##Homeworks
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#FirebaseStream
2+
3+
FirebaseStream is a sample that shows basic usage of the`FirebaseArduino`
4+
streaming API.
5+
6+
It displays the current bitcoin price on a OLED screen as it gets updated on
7+
https://publicdata-cryptocurrency.firebaseio.com.
8+
9+
##Hardware setup
10+
11+
1. Get a[Feather Huzzah](https://www.adafruit.com/product/2821)
12+
1. Get a[FeatherWing OLED](https://www.adafruit.com/products/2900)
13+
1. Solder female headers on the`Feather Huzzah`.
14+
1. Solder mail headers on the`FeatherWing OLED`.
15+
1. Stack the`FeatherWing OLED` on top of the`Feather Huzzah`.
16+
17+
##Software setup
18+
19+
1. Install[Arduino 1.6.9](https://www.arduino.cc/en/Main/Software)
20+
1. Install[Arduino ESP8266 core](https://github.com/esp8266/Arduino#installing-with-boards-manager)
21+
1. Download[FirebaseArduino library](https://github.com/googlesamples/firebase-arduino/archive/master.zip)
22+
1. Start Arduino
23+
1. Click`Sketch > Include Library > Add .ZIP Library...`
24+
1. Choose`firebase-arduino-master.zip` downloaded in step`3.`
25+
1. Install the following libraries using`Sketch > Include Library > Manage Libraries...`:
26+
-[Adafruit_GFX](https://github.com/adafruit/Adafruit-GFX-Library)
27+
-[Adafruit_SSD1306](https://github.com/adafruit/Adafruit_SSD1306)
28+
29+
##Configuration
30+
31+
1. Start Arduino
32+
1. Click`File > Examples > FirebaseArduino > FirebaseStream_ESP8266`
33+
1. Replace`SSID` and`PASSWORD` with WiFi credentials
34+
1. Click`Sketch > Upload`
35+
36+
##Play
37+
38+
1. Watch the screen be updated with the current bitcoin price.
39+
1. Watch the data being modified as the sketch run.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp