File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
examples/FirebaseNeoPixel_ESP8266 Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ void loop() {
66
66
}
67
67
68
68
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);
71
70
strip.setPixelColor (i, pixel);
72
71
}
73
72
strip.show ();
73
+ delay (200 );
74
74
}
Original file line number Diff line number Diff line change 20
20
#include " third-party/arduino-json-5.3/include/ArduinoJson.h"
21
21
22
22
#ifndef FIREBASE_JSONBUFFER_SIZE
23
- #define FIREBASE_JSONBUFFER_SIZE 200
23
+ #define FIREBASE_JSONBUFFER_SIZE JSON_OBJECT_SIZE ( 32 )
24
24
#endif // FIREBASE_JSONBUFFER_SIZE
25
25
26
26
/* *
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ FIREBASE_DIR=..
18
18
GTEST_DIR =googletest/googletest
19
19
ARDUINOJSON_DIR =../src/third-party/arduino-json-5.3
20
20
21
- FIREBASE_SRCS =${FIREBASE_DIR}/src/FirebaseObject.cpp
21
+ FIREBASE_SRCS =${FIREBASE_DIR}/src/FirebaseObject.cpp\
22
+ ${FIREBASE_DIR}/src/FirebaseObject.h
22
23
GTEST_SRCS =${GTEST_DIR}/src/gtest-all.cpp
23
24
ARDUINOJSON_SRCS =${ARDUINOJSON_DIR}/src/JsonBuffer.cpp\
24
25
${ARDUINOJSON_DIR}/src/JsonObject.cpp\
@@ -39,7 +40,7 @@ SRCS=FirebaseArduino_test.cpp\
39
40
40
41
OBJS=${SRCS:.cpp =.o}
41
42
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
43
44
LDFLAGS =-lpthread
44
45
45
46
all : check
You can’t perform that action at this time.
0 commit comments