leonvandenbeukel / Round-LED-Clock

Wi-Fi connected round LED Clock
Apache License 2.0
134 stars 64 forks source link

DATA_PIN not defined in the scope #15

Open raviteja2110 opened 4 years ago

raviteja2110 commented 4 years ago

Round-LED-Clock:81:18: error: 'D6' was not declared in this scope

define DATA_PIN D6

Pijuli commented 4 years ago

Same here :(

Pijuli commented 4 years ago

Using ESP8266 D1 mini This is what I'm getting. Any idea?

Arduino:1.8.12 (Windows 10), Tarjeta:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003

 #    pragma message "FastLED version 3.003.003"

                     ^

In file included from C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,

                 from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/fastspi.h:130:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^

C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino: In function 'void setup()':

Round-LED-Clock:63:18: error: 'D6' was not declared in this scope

 #define DATA_PIN D6

                  ^

C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:81:28: note: in expansion of macro 'DATA_PIN'

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                            ^

Round-LED-Clock:81:57: error: no matching function for call to 'CFastLED::addLeds(CRGB [60], int)'

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:81:57: note: candidates are:

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:223:130: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER, unsigned int SPI_DATA_RATE> CLEDController& CFastLED::addLeds(CRGB*, int, int)

  template<ESPIChipsets CHIPSET,  uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER, uint32_t SPI_DATA_RATE > CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                                                                                                                                  ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:223:130: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: template argument 2 is invalid

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:237:95: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  template<ESPIChipsets CHIPSET,  uint8_t DATA_PIN, uint8_t CLOCK_PIN > static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                                                                                               ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:237:95: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: template argument 2 is invalid

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:251:113: note: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  template<ESPIChipsets CHIPSET,  uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER > static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                                                                                                                 ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:251:113: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: template argument 2 is invalid

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:301:25: note: template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:301:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: template argument 2 is invalid

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:307:25: note: template<template<unsigned char DATA_PIN, EOrder RGB_ORDER> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:307:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: wrong number of template arguments (3, should be 2)

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:313:25: note: template<template<unsigned char DATA_PIN> class CHIPSET, unsigned char DATA_PIN> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:313:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: wrong number of template arguments (3, should be 2)

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:357:25: note: template<template<EOrder RGB_ORDER> class CHIPSET, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:357:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: wrong number of template arguments (3, should be 2)

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:363:25: note: template<template<EOrder RGB_ORDER> class CHIPSET> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:363:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: wrong number of template arguments (3, should be 1)

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:431:25: note: template<EBlockChipsets CHIPSET, int NUM_LANES, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:431:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: template argument 2 is invalid

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

In file included from C:\Users\Pijuli\Documents\Arduino\projectes\Round-LED-Clock\Round-LED-Clock.ino:18:0:

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:472:25: note: template<EBlockChipsets CHIPSET, int NUM_LANES> static CLEDController& CFastLED::addLeds(CRGB*, int, int)

  static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {

                         ^

C:\Users\Pijuli\Documents\Arduino\libraries\FastLED/FastLED.h:472:25: note:   template argument deduction/substitution failed:

Round-LED-Clock:81:57: error: wrong number of template arguments (3, should be 2)

   FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);  

                                                         ^

exit status 1
'D6' was not declared in this scope
Pijuli commented 4 years ago

Fixed. I was using the wrong ESP8266 board Tripple check your board. In my case WEMOS D1 R2 & Mini