Open probonopd opened 8 years ago
It definitely needs documentation, but I was able to build it and make use of this git!
Please Musicleecher, can you sahre your change to make it compile, got the same issue
Edit : solve by adding this lib : https://github.com/bblanchon/ArduinoJson
Good to see you managed to solve it on your own!
Still cannot compile, Arduino-1.6.8.201601250626 and core commit 1783 with NeoPixelBus-UartDriven from git.
$HOME/Esp8266-Hue-spiffs_branch/HueBridge-example/HueBridge-example.ino: In function 'void loop()':
HueBridge-example:160: error: no matching function for call to 'NeoPixelAnimator::UpdateAnimations(int)'
if ( animator.IsAnimating() ) animator.UpdateAnimations(100);
^
$HOME/Esp8266-Hue-spiffs_branch/HueBridge-example/HueBridge-example.ino:160:64: note: candidate is:
In file included from $HOME/Arduino/libraries/NeoPixelBus-UartDriven/src/NeoPixelBus.h:31:0,
from $HOME/Esp8266-Hue-spiffs_branch/HueBridge-example/HueBridge-example.ino:21:
$HOME/Arduino/libraries/NeoPixelBus-UartDriven/src/NeoPixelAnimator.h:50:10: note: void NeoPixelAnimator::UpdateAnimations()
void UpdateAnimations();
^
$HOME/Arduino/libraries/NeoPixelBus-UartDriven/src/NeoPixelAnimator.h:50:10: note: candidate expects 0 arguments, 1 provided
exit status 1
no matching function for call to 'NeoPixelAnimator::UpdateAnimations(int)'
I'm having issues as well with later versions of the arduino IDE. Amuse me and try to compile with 1.6.6 IDE.
This example sketch compiles just fine for me. just did git pul of the ESP8266-hue, and compiled using 1.6.6 IDE, and the latest esp8266 from github (minus a small change in the linker script)
see here.. http://pastebin.com/9YdLdw4x
works gret for me too on ide 1.6.5 and esp8266 arduino rc2.1.0
@probonopd looking at your error a bit closer it looks like your version of neopixelbus is not quite right or up to date. Try updating or remove the int from updateanimations. The error is because that value is a max delta added later to the lib. Stops big jumps in animations if say a wifi inturrupt fires or something else stops the animator from being called.
I was having the same problem - removed the int from updateanimations and that error went away. I now have this:-
I am trying to use this as a base to build a Hue bridge emulator with a dumb strip of RGBW leds for the kitchen cabinets... so will remove neopixels later....
HueBridge.cpp: In member function 'void HueBridge::Put_light()': HueBridge.cpp:630: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["hue"] ); ^ HueBridge.cpp:630:75: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp:638: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["sat"]); ^ HueBridge.cpp:638:74: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp:647: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["bri"]); ^ HueBridge.cpp:647:74: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp: In member function 'void HueBridge::Put_group()': HueBridge.cpp:916: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["hue"] ); ^ HueBridge.cpp:916:75: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp:927: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["sat"]); ^ HueBridge.cpp:927:74: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp:938: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["bri"]); ^ HueBridge.cpp:938:74: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp:1012: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous if (_returnJSON) AddSucessToArray (array, response, root["name"]); ^ HueBridge.cpp:1012:73: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ HueBridge.cpp: In member function 'void HueBridge::Put_Light_Root()': HueBridge.cpp:1176: error: call of overloaded 'AddSucessToArray(ArduinoJson::JsonArray&, String&, ArduinoJson::JsonObjectSubscript<const char*>)' is ambiguous AddSucessToArray (array, response, root["name"]); ^ HueBridge.cpp:1176:59: note: candidates are: In file included from HueBridge.cpp:2:0: HueBridge.h:132:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, String) void AddSucessToArray(JsonArray& array, String item, String value); ^ HueBridge.h:133:7: note: void HueBridge::AddSucessToArray(ArduinoJson::JsonArray&, String, char*) void AddSucessToArray(JsonArray& array, String item, char* value); ^ Exception in thread "Thread-30" java.lang.NullPointerException at org.fife.ui.rsyntaxtextarea.TokenMakerBase.addNullToken(TokenMakerBase.java:79) at org.fife.ui.rsyntaxtextarea.modes.CPlusPlusTokenMaker.yylex(CPlusPlusTokenMaker.java:2295) at org.fife.ui.rsyntaxtextarea.modes.CPlusPlusTokenMaker.getTokenList(CPlusPlusTokenMaker.java:1901) at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.getTokenListForLine(RSyntaxDocument.java:416) at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.getTokenListForLine(RSyntaxTextArea.java:1699) at org.fife.ui.rsyntaxtextarea.folding.CurlyFoldParser.getFolds(CurlyFoldParser.java:123) at org.fife.ui.rsyntaxtextarea.folding.FoldManager.reparse(FoldManager.java:583) at org.fife.ui.rsyntaxtextarea.folding.FoldManager$Listener.propertyChange(FoldManager.java:705) at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263) at java.awt.Component.firePropertyChange(Component.java:8422) at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:443) at org.fife.ui.rtextarea.RTextArea.setDocument(RTextArea.java:1421) at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.setDocument(RSyntaxTextArea.java:2373) at processing.app.syntax.SketchTextArea.switchDocument(SketchTextArea.java:210) at processing.app.Editor.setCode(Editor.java:1762) at processing.app.Sketch.setCurrentCode(Sketch.java:1000) at processing.app.Sketch.setCurrentCode(Sketch.java:980) at processing.app.Editor.statusError(Editor.java:2670) at processing.app.Editor$BuildHandler.run(Editor.java:1963) at java.lang.Thread.run(Thread.java:745)
Those errors look familiair, happens when you use the latest ArduinoJson library. Use ArduinoJson library version 5.0.8
@bmeulendijks - Thank you! that was the problem
Would someone be able to upload (on github or whatever) the library folder for Neopixel that your using? Or a link to the sha to download it?
@spants @bmeulendijks @sticilface @deennoo @probonopd ?
This could need some documentation too. I am trying the SPIFFS branch but I get