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

Commitc1547e2

Browse files
committed
examples/FirebaseNeopixel: fix key, rebase and buf size
1 parent1a947ff commitc1547e2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

‎examples/FirebaseNeoPixel_ESP8266/FirebaseNeoPixel_ESP8266.ino‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ void loop() {
6666
}
6767

6868
for (int i =0; i < strip.numPixels(); i++) {
69-
int pixel = pixels.getInt("pixel" + i);
70-
Serial.println(pixel);
69+
int pixel = pixels.getInt(String("pixel") + i);
7170
strip.setPixelColor(i, pixel);
7271
}
7372
strip.show();
73+
delay(200);
7474
}

‎src/FirebaseObject.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include"third-party/arduino-json-5.3/include/ArduinoJson.h"
2121

2222
#ifndef FIREBASE_JSONBUFFER_SIZE
23-
#defineFIREBASE_JSONBUFFER_SIZE200
23+
#defineFIREBASE_JSONBUFFER_SIZEJSON_OBJECT_SIZE(32)
2424
#endif// FIREBASE_JSONBUFFER_SIZE
2525

2626
/**

‎test/Makefile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ FIREBASE_DIR=..
1818
GTEST_DIR=googletest/googletest
1919
ARDUINOJSON_DIR=../src/third-party/arduino-json-5.3
2020

21-
FIREBASE_SRCS=${FIREBASE_DIR}/src/FirebaseObject.cpp
21+
FIREBASE_SRCS=${FIREBASE_DIR}/src/FirebaseObject.cpp\
22+
${FIREBASE_DIR}/src/FirebaseObject.h
2223
GTEST_SRCS=${GTEST_DIR}/src/gtest-all.cpp
2324
ARDUINOJSON_SRCS=${ARDUINOJSON_DIR}/src/JsonBuffer.cpp\
2425
${ARDUINOJSON_DIR}/src/JsonObject.cpp\
@@ -39,7 +40,7 @@ SRCS=FirebaseArduino_test.cpp\
3940

4041
OBJS=${SRCS:.cpp=.o}
4142

42-
CXXFLAGS=-I../src -Igoogletest/googletest/include -Igoogletest/googletest -std=c++11
43+
CXXFLAGS=-I../src -Igoogletest/googletest/include -Igoogletest/googletest -std=c++11 -g
4344
LDFLAGS=-lpthread
4445

4546
all: check

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp