Hello everyone! I am new to arduino but catch on quickly and know how to follow directions but I am stumped with this issue. I am trying to create this LED clock and cannot get the code to compile with no issues. Here is the link to the clock and below is the code I just copied by clicking the button in arduino ide called "Copy error messages" any help and advice would be much appreciated! Thank you all!!
Arduino: 1.8.16 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 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\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:13:
C:\Users\Matt\Documents\Arduino\libraries\FastLED\src/FastLED.h:433:25: note: candidate: 'template<EBlockChipsets CHIPSET, int NUM_LANES, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
433 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
C:\Users\Matt\Documents\Arduino\libraries\FastLED\src/FastLED.h:433:25: note: template argument deduction/substitution failed:
clock_main:140:57: error: template argument 2 is invalid
140 | FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);
| ^
In file included from C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:13:
C:\Users\Matt\Documents\Arduino\libraries\FastLED\src/FastLED.h:474:25: note: candidate: 'template<EBlockChipsets CHIPSET, int NUM_LANES> static CLEDController& CFastLED::addLeds(CRGB*, int, int)'
474 | static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
| ^~~~~~~
C:\Users\Matt\Documents\Arduino\libraries\FastLED\src/FastLED.h:474:25: note: template argument deduction/substitution failed:
clock_main:140:57: error: wrong number of template arguments (3, should be 2)
140 | FastLED.addLeds<WS2812B, DATA_PIN, GRB>(LEDs, NUM_LEDS);
| ^
In file included from C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:19:
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino: In lambda function:
Settings.h:6:26: error: 'D5' is not captured
6 | #define COUNTDOWN_OUTPUT D5 // Output pin to drive buzzer or other device upon countdown expiration
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:269:18: note: in expansion of macro 'COUNTDOWN_OUTPUT'
269 | digitalWrite(COUNTDOWN_OUTPUT, LOW);
| ^~~~~~~~~~~~~~~~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:264:39: note: the lambda has no capture-default
264 | server.on("/countdown", HTTP_POST, {
| ^
In file included from C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:19:
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\Settings.h:6:26: note: 'D5' declared here
6 | #define COUNTDOWN_OUTPUT D5 // Output pin to drive buzzer or other device upon countdown expiration
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:107:11: note: in expansion of macro 'COUNTDOWN_OUTPUT'
107 | pinMode(COUNTDOWN_OUTPUT, OUTPUT);
| ^~~~~~~~~~~~~~~~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino: In function 'void loop()':
Settings.h:13:18: error: 'D3' was not declared in this scope
13 | #define MODE_PIN D3 // Push button (white): Change Mode
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:641:33: note: in expansion of macro 'MODE_PIN'
641 | int modeReading = digitalRead(MODE_PIN);
| ^~~~~~~~
Settings.h:14:16: error: 'D4' was not declared in this scope
14 | #define V1_PIN D4 // Push button (red): Visitor+/Minutes Add button
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:642:31: note: in expansion of macro 'V1_PIN'
642 | int v1Reading = digitalRead(V1_PIN);
| ^~~~~~
Settings.h:16:16: error: 'D7' was not declared in this scope
16 | #define H1_PIN D7 // Push button (yellow): Home+/Countdown start button
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:644:32: note: in expansion of macro 'H1_PIN'
644 | int h1_Reading = digitalRead(H1_PIN);
| ^~~~~~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino: In function 'void updateCountdown()':
Settings.h:6:26: error: 'D5' was not declared in this scope
6 | #define COUNTDOWN_OUTPUT D5 // Output pin to drive buzzer or other device upon countdown expiration
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:962:18: note: in expansion of macro 'COUNTDOWN_OUTPUT'
962 | digitalWrite(COUNTDOWN_OUTPUT, HIGH);
| ^~~~~~~~~~~~~~~~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino: In function 'void soundBuzzer(unsigned int)':
Settings.h:6:26: error: 'D5' was not declared in this scope
6 | #define COUNTDOWN_OUTPUT D5 // Output pin to drive buzzer or other device upon countdown expiration
| ^~
C:\Users\Matt\Desktop\3D-LED-Clock-1.00\clock_main\clock_main.ino:983:18: note: in expansion of macro 'COUNTDOWN_OUTPUT'
983 | digitalWrite(COUNTDOWN_OUTPUT, HIGH);
exit status 1
'D5' was not declared in this scope