c-klinger / esp8266-arduino-wifirgb Goto Github PK
View Code? Open in Web Editor NEWA RESTful API implementation to control an RGB LED Strip using an ESP8266 microcontroller.
License: Other
A RESTful API implementation to control an RGB LED Strip using an ESP8266 microcontroller.
License: Other
Hello
can you please Help me to update your code to arduinoJson V6.x.x ?
I tried the instructions from https://arduinojson.org/v6/doc/upgrade/ , but unfortunately without success.
Thank you for your efforts
So I experimented with the analogWrite Pins of an Arduino and an ESP8266. When I wrote 255 on the ESP I only measured 0.824 V, that got me wondering what is wrong... So it turns out that the analogWrite resolution on the ESP is 10-bit wide! This means the highest value is 1023 not 255 (https://circuits4you.com/2017/12/21/esp8266-pwm-example/)! So in conclusion with your sketch we are losing 3/4 of the possible brightness. This needs to get fixed asap, if you don't have any time, let me know it I will open a PR.
MQTT should be supported and basic parameters should be configurable by web interface
Do you know why I might be getting 'min' and 'max' not declared in this scope?
Build options changed, rebuilding all
C:\Users\mbaney\Downloads\esp8266-arduino-wifirgb-master\esp8266-arduino-wifirgb-master\WifiRGB\WifiRGB.ino: In function 'RGB hsvToRgb(double, double, double)':
WifiRGB:243:28: error: 'min' was not declared in this scope
h = max(0.0, min(360.0, h));
^
C:\Users\mbaney\Downloads\esp8266-arduino-wifirgb-master\esp8266-arduino-wifirgb-master\WifiRGB\WifiRGB.ino:243:28: note: suggested alternative:
In file included from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\char_traits.h:39:0,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\string:40,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\stdexcept:39,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:38,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:39,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55,
from C:\Users\mbaney\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.h:27,
from C:\Users\mbaney\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:28,
from C:\Users\mbaney\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,
from C:\Users\mbaney\Downloads\esp8266-arduino-wifirgb-master\esp8266-arduino-wifirgb-master\WifiRGB\WifiRGB.ino:1:
c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: 'std::min'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
WifiRGB:243:29: error: 'max' was not declared in this scope
h = max(0.0, min(360.0, h));
^
C:\Users\mbaney\Downloads\esp8266-arduino-wifirgb-master\esp8266-arduino-wifirgb-master\WifiRGB\WifiRGB.ino:243:29: note: suggested alternative:
In file included from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\char_traits.h:39:0,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\string:40,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\stdexcept:39,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:38,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:39,
from c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55,
from C:\Users\mbaney\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.h:27,
from C:\Users\mbaney\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:28,
from C:\Users\mbaney\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,
from C:\Users\mbaney\Downloads\esp8266-arduino-wifirgb-master\esp8266-arduino-wifirgb-master\WifiRGB\WifiRGB.ino:1:
c:\users\mbaney\documents\arduinodata\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:260:5: note: 'std::max'
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
exit status 1
'min' was not declared in this scope
Hey,
thanks for the Project. I wanted to run the code on the Esp8266 but I got the following error message.
DynamicJsonBuffer jsonBuffer(bufferSize);
**WifiRGB:143: error: 'DynamicJsonBuffer' was not declared in this scope
DynamicJsonBuffer jsonBuffer(bufferSize);
^
WifiRGB:143: error: expected ';' before 'jsonBuffer'
DynamicJsonBuffer jsonBuffer(bufferSize);**
Do you know what that means?
In the Schematics the Blue Pin is connected to GPIO4 while in the Code and Gerber files, it is connected to Pin 5.
Simplify / Refactore the code to have a single method for N-/P-Channel MOSFET Configuration
I successfully compiled and flashed everything (Board Version 2.4.2, ArduinoJSON 5.1). But as soon as I go to IP/ui
or IP/admin
(only the IP
just works fine). The software just crashes completely. Which version of the above mentioned libs did you used? With 2.3 of the board software it can't compile the same applies with ArduinoJSON beta 6.x.
Attached is a decoded stacktrace when I try to open the admin panel.
I tried another board and chip, but it's showing the exact same issues. Could it be a bad solder joint or something?
For me it's from 1s to 5s. But the weird thing is, running the same software on a NodeMCU cuts the load time to 400ms
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.