|
7 | 7 | 1. Download[FirebaseArduino library](https://github.com/googlesamples/firebase-arduino/archive/master.zip)
|
8 | 8 | 1. Start Arduino
|
9 | 9 | 1. Click`Sketch > Include Library > Add .ZIP Library...`
|
10 |
| -1. Choose`firebase-arduino-master.zip` downloaded in step3. |
| 10 | +1. Choose`firebase-arduino-master.zip` downloaded in step`3.` |
11 | 11 |
|
12 | 12 | ##Hardware setup
|
13 | 13 |
|
14 |
| -1. Get a Wio-link |
| 14 | +1. Get a[Wio Link](http://www.seeedstudio.com/wiki/Wio_Link) |
15 | 15 | 1. Connect:
|
16 |
| -- agrove vibrator motor on`pin 5` |
17 |
| -- agrove light sensor on`pin A0` |
18 |
| -- agrove redLED on`pin 12` |
19 |
| -- agrove push button on`pin 14` |
20 |
| -- agrove fan on`pin 13` |
| 16 | +- a[Grove - Vibration Motor](http://www.seeedstudio.com/wiki/Grove_-_Vibration_Motor) on`pin 5` |
| 17 | +- a[Grove - Light Sensor](http://www.seeedstudio.com/wiki/Grove_-_Light_Sensor) on`pin A0` |
| 18 | +- a[Grove - RedLED](http://www.seeedstudio.com/wiki/Grove_-_Red_LED) on`pin 12` |
| 19 | +- a[Grove - Button](http://www.seeedstudio.com/wiki/Grove_-_Button) on`pin 14` |
| 20 | +- a[Grove - Mini Fan](http://www.seeedstudio.com/wiki/Grove_-_Mini_Fan) on`pin 13` |
21 | 21 |
|
22 | 22 | ##Configuration
|
23 | 23 |
|
24 |
| -1. Go tohttps://www.firebase.com/ and create a new Firebase. |
| 24 | +1. Go tohttps://www.firebase.com/ and create a new Firebase |
25 | 25 | 1. Copy the`Firebase Hostname`
|
26 | 26 | 1. Go to`Secrets`
|
27 | 27 | 1. Click`Firebase Secrets > Shows`
|
28 | 28 | 1. Copy the`Firebase Secret`
|
29 | 29 | 1. Start Arduino
|
30 | 30 | 1. Click`File > Examples > firebase-arduino > FirebaseRoom_ESP8266`
|
31 |
| -1. Replace`example.firebaseio.com` with the`Firebase Hostname` from step2. |
32 |
| -1. Replace`secret_or_token` with`Firebase Secret` from step5. |
| 31 | +1. Replace`example.firebaseio.com` with the`Firebase Hostname` from step`2.` |
| 32 | +1. Replace`secret_or_token` with`Firebase Secret` from step`5.` |
33 | 33 | 1. Click`Sketch > Upload`
|
34 | 34 |
|
35 | 35 | ##Play
|
|
40 | 40 | 1. Same for`cooldown` and`brrr`
|
41 | 41 | 1. Press the push button in the room
|
42 | 42 | 1. Watch the`pushbutton` value change in the Firebase console
|
43 |
| -1. Put your hand on the light sensor. |
| 43 | +1. Put your hand on the light sensor |
44 | 44 | 1. Watch the`sunlight` value change in the Firebase console
|
45 | 45 |
|
46 | 46 | ##Homeworks
|
47 | 47 |
|
48 |
| -- Connect other Grove modules to the room and submit new[PRs](https://github.com/googlesamples/firebase-arduino/pulls). |
49 |
| -- Reduce the number of Firebase API call using`ArduinoJson`. |
| 48 | +- Connect other Grove modules to the room and submit new[PRs](https://github.com/googlesamples/firebase-arduino/pulls) |
| 49 | +- Reduce the number of Firebase API call using`ArduinoJson` |
50 | 50 | - Reduce the number of Firebase API call using`Firebase.stream()`
|
51 | 51 | - Watch or star the[GitHub repo repo](https://github.com/googlesamples/firebase-arduino)
|
52 | 52 | - Give[feedbacks](gitter.im/googlesamples/firebase-arduino)
|
53 | 53 | - Report[bugs](https://github.com/googlesamples/firebase-arduino/issues/new)
|
54 |
| --[Fork](https://github.com/googlesamples/firebase-arduino#fork-destination-box) and[contribute](https://github.com/googlesamples/firebase-arduino/blob/master/CONTRIBUTING.md). |
55 |
| - |
| 54 | +-[Fork](https://github.com/googlesamples/firebase-arduino#fork-destination-box) and[contribute](https://github.com/googlesamples/firebase-arduino/blob/master/CONTRIBUTING.md) |