Comments (2)
If you search online this is common problem to hit, and sometimes its hard to see the tree for the forest.
Your problem is in this code...
extern ESP8266WebServer server;
extern NeoPixelBus<NeoRgbFeature, NeoEsp8266BitBang800KbpsMethod> rgb_led();
One line is correct, one is not. You have () on the rgb_led so the compiler thinks its a function rather than a class. remove the ().
It should look like...
extern ESP8266WebServer server;
extern NeoPixelBus<NeoRgbFeature, NeoEsp8266BitBang800KbpsMethod> rgb_led;
I would also suggest that you typedef the NeoPixelBus so that if you want to change it, you change it in one spot. Further makes it easier to read code. So in main.h
typedef NeoPixelBus<NeoRgbFeature, NeoEsp8266BitBang800KbpsMethod> MyPixelBus;
extern MyPixelBus rgb_led;
from neopixelbus.
Works like a charm, thanks, and yes typedef is much better ;-)
from neopixelbus.
Related Issues (20)
- error: 'NOT_A_PIN' was not declared in this scope HOT 4
- [Issue with running NeoPixelBitmap.ino on a 8*32 flex display]
- Add support for SM16825 chip HOT 24
- Add support for TM1934 HOT 4
- NeoEsp32I2s1Ws2812xMethod jitters HOT 8
- Support for WS2805 HOT 4
- 16 bit/channel RGBCW
- "Loop Sends" for repeating output stream on low memory builds. HOT 3
- Add NeoPixelBus to the External Library Testing for Espressif ESP32
- NeoPixelBus 2.7.8 example NeoPixelTest.ino will not compile for an ESP32-C3 using ESP32 Board v3.0.0-alpha3 HOT 14
- Support for TLC59711 chips HOT 5
- Add support for WS2805 HOT 1
- HD108 Support HOT 9
- Support for LED Curtains, Active tee/hook for each vertical drop HOT 4
- Support WS2814 LEDs HOT 3
- WS2815 support
- False positive error report HOT 5
- Add support for dynamic ColorFeature selection rather than static compiled into the type like today HOT 5
- SK6803 support
- WS2812 LEDs Display Incorrect Colors When WiFi is Connected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neopixelbus.