Hi, hier bekomme ich folgenden Fehlercode rein:
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino: In function 'void setup()':
sketch_nov13a:13:66: error: the value of 'DATA_PIN' is not usable in a constant expression
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:7:12: note: 'DATA_PIN' was not declared 'constexpr'
const byte DATA_PIN[5] = { 4, 8, 6, 7, A2};
^~~~~~~~
sketch_nov13a:13:91: error: no matching function for call to 'CFastLED::addLeds<WS2812B, DATA_PIN[((int)i)], GRB>(CRGB [60], const int&)'
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:267:130: note: candidate: template<ESPIChipsets CHIPSET, unsigned char DATA_PIN, unsigned char CLOCK_PIN, EOrder RGB_ORDER, long 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:267:130: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: the value of 'DATA_PIN' is not usable in a constant expression
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:7:12: note: 'DATA_PIN' was not declared 'constexpr'
const byte DATA_PIN[5] = { 4, 8, 6, 7, A2};
^~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:13:91: note: in template argument for type 'unsigned char'
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:282:95: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:282:95: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: the value of 'DATA_PIN' is not usable in a constant expression
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:7:12: note: 'DATA_PIN' was not declared 'constexpr'
const byte DATA_PIN[5] = { 4, 8, 6, 7, A2};
^~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:13:91: note: in template argument for type 'unsigned char'
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:297:113: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:297:113: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: the value of 'DATA_PIN' is not usable in a constant expression
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:7:12: note: 'DATA_PIN' was not declared 'constexpr'
const byte DATA_PIN[5] = { 4, 8, 6, 7, A2};
^~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:13:91: note: in template argument for type 'unsigned char'
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:312:56: note: candidate: template<ESPIChipsets CHIPSET> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET> static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^~~~~~~
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:312:56: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: wrong number of template arguments (3, should be 1)
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:316:74: note: candidate: template<ESPIChipsets CHIPSET, EOrder RGB_ORDER> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET, EOrder RGB_ORDER> static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^~~~~~~
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:316:74: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: wrong number of template arguments (3, should be 2)
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:320:98: note: candidate: template<ESPIChipsets CHIPSET, EOrder RGB_ORDER, long unsigned int SPI_DATA_RATE> static CLEDController& CFastLED::addLeds(CRGB*, int, int)
template<ESPIChipsets CHIPSET, EOrder RGB_ORDER, uint32_t SPI_DATA_RATE> static CLEDController &addLeds(struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset = 0) {
^~~~~~~
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:320:98: note: template argument deduction/substitution failed:
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:13:66: warning: invalid conversion from 'byte {aka unsigned char}' to 'EOrder' [-fpermissive]
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
~~~~~~~~~~^
sketch_nov13a:13:91: error: the value of 'DATA_PIN' is not usable in a constant expression
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:7:12: note: 'DATA_PIN' was not declared 'constexpr'
const byte DATA_PIN[5] = { 4, 8, 6, 7, A2};
^~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:13:91: note: in template argument for type 'EOrder'
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:351:25: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:351:25: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: the value of 'DATA_PIN' is not usable in a constant expression
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:7:12: note: 'DATA_PIN' was not declared 'constexpr'
const byte DATA_PIN[5] = { 4, 8, 6, 7, A2};
^~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:13:91: note: in template argument for type 'unsigned char'
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:358:25: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:358:25: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: wrong number of template arguments (3, should be 2)
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:365:25: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:365:25: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: wrong number of template arguments (3, should be 2)
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:413:25: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:413:25: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: wrong number of template arguments (3, should be 2)
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
In file included from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:0:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:420:25: note: candidate: 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\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:420:25: note: template argument deduction/substitution failed:
sketch_nov13a:13:91: error: wrong number of template arguments (3, should be 1)
for (byte i = 0; i < 5; i++)FastLED.addLeds<WS2812B, DATA_PIN[i], GRB>(leds[i], NUM_LEDS);
^
C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino: In function 'void loop()':
sketch_nov13a:21:53: error: no matching function for call to 'fill_solid(CRGB&, const int&, CRGB)'
fill_solid(leds[Rand][0], NUM_LEDS, CRGB( R, G, B));
^
In file included from C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/FastLED.h:68:0,
from C:\Users\Sacrilege\Documents\Arduino\sketch_nov13a\sketch_nov13a.ino:1:
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/colorutils.h:25:6: note: candidate: void fill_solid(CRGB*, int, const CRGB&)
void fill_solid( struct CRGB * targetArray, int numToFill,
^~~~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/colorutils.h:25:6: note: no known conversion for argument 1 from 'CRGB' to 'CRGB*'
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/colorutils.h:29:6: note: candidate: void fill_solid(CHSV*, int, const CHSV&)
void fill_solid( struct CHSV* targetArray, int numToFill,
^~~~~~~~~~
C:\Users\Sacrilege\Documents\Arduino\libraries\FastLED\src/colorutils.h:29:6: note: no known conversion for argument 1 from 'CRGB' to 'CHSV*'
exit status 1
the value of 'DATA_PIN' is not usable in a constant expression
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
Ich bin wie gesagt ganz frisch und habe keine Ahnung was das Meiste davon bedeutet. Bitte um Hilfe.