Git Product home page Git Product logo

esp8266-arduino-wifirgb's People

Contributors

c-klinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esp8266-arduino-wifirgb's Issues

Huge issue with analogWrite resolution - only 1/4 of possible brightness

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 Support

MQTT should be supported and basic parameters should be configurable by web interface

'min' was not declared in this scope

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

DynamicJasonBuffer

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?

Software on ESP just crashes when opening /ui or /admin

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.
screenshot 2018-10-23 at 18 39 16

I tried another board and chip, but it's showing the exact same issues. Could it be a bad solder joint or something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.