Fermate Skrevet 28. mars 2023 Skrevet 28. mars 2023 I bloggen Enda en smart(?) klokke beskriver jeg byggingen av en "bokstav klokke". Her deler jeg kildekoden til denne og håper at folk bygger den ut og deler tilbake her Sitat #include <WiFiManager.h> #include <time.h> #include "FastLED.h" #include "FastLED_RGBW.h" #define NUM_LEDS 144 #define DATA_PIN 4 #define BUTTON_PIN 16 #define LED_PIN 2 CRGBW leds[NUM_LEDS]; CRGB *ledsRGB = (CRGB *) &leds[0]; const uint8_t brightness = 128; //Time #define MY_NTP_SERVER "pool.ntp.org" #define MY_TZ "CET-1CEST,M3.5.0,M10.5.0/3" time_t now; // this is the epoch tm timeNow; time_t last; tm timeLast; // WiFi WiFiManager wfm; // Create WiFiManager object WiFiManagerParameter custom_text_box("my_text", "Enter your string here", "default string", 50); // **************************** void setup() { // Setup Serial Monitor Serial.begin(115200); // Button / LEd pinMode(BUTTON_PIN, INPUT_PULLUP); pinMode(LED_PIN, OUTPUT); digitalWrite(LED_PIN, LOW); //FastLED FastLED.addLeds<WS2812B, DATA_PIN, RGB>(ledsRGB, getRGBWsize(NUM_LEDS)); FastLED.setBrightness(brightness); // Test LED setAll(255,0,0,0); FastLED.show(); delay(5000); setAll(0,255,0,0); FastLED.show(); delay(1000); setAll(0,0,255,0); FastLED.show(); delay(1000); setAll(0,0,0,255); FastLED.show(); delay(1000); // Display WiFI setAll(0,0,0,0); displayWiFi(); FastLED.show(); char *customHtml; customHtml="type=\"checkbox\" cheked"; wfm.addParameter(&custom_text_box); // wfm.resetSettings(); WiFi.mode(WIFI_AP_STA); if (!wfm.autoConnect("BokstavKlokke", "BokstavKlokke")) { // Did not connect, print error message Serial.println("failed to connect and hit timeout"); // Reset and try again ESP.restart(); delay(1000); } else { Serial.println("Connected"); WiFi.printDiag(Serial); displayIP(); Serial.println("After DisplayIP"); } // NTP configTime(0, 0, MY_NTP_SERVER); // 0, 0 because we will use TZ in the next line setenv("TZ", MY_TZ, 1); // Set environment variable with your time zone tzset(); } // **************************** void loop(){ // Reset (WiFi Manager ) if (digitalRead(BUTTON_PIN) == LOW) { Serial.println("Reset Pressed"); digitalWrite(LED_PIN, HIGH); setAll(0,0,0,0); displayWiFi(); FastLED.show(); Serial.println("Start Portal"); WiFi.printDiag(Serial); wfm.startConfigPortal("BokstavKlokke", "BokstavKlokke") ; digitalWrite(LED_PIN, LOW); displayIP(); Serial.println("Exit Reset"); WiFi.printDiag(Serial); } time(&now); // read the current time localtime_r(&now, &timeNow); // update the structure tm with the current time if (timeNow.tm_year==1970) { delay(1000); Serial.println("Venter på Tid"); } else { if (timeNow.tm_sec!= timeLast.tm_sec) { Serial.print("Year:"); Serial.print(timeNow.tm_year); Serial.print(" Hour:"); Serial.print(timeNow.tm_hour); Serial.print(" Min:"); Serial.print(timeNow.tm_min); Serial.print(" Sec:"); Serial.print(timeNow.tm_sec); Serial.println(); setAll(0,0,0,0); displayKlokkaErNa(); display(timeNow.tm_hour,timeNow.tm_min); FastLED.show(); } } timeLast=timeNow; } void loopTEST(){ displayKlokkaErNa(); for (byte h=1; h<25; h++) { for (byte m=0; m<61; m++) { setAll(0,0,0,0); display(h,m); FastLED.show(); delay(1500); } delay(100); } delay(2000); } // ****************************** void display(byte h, byte m) { Serial.print("Display h:"); Serial.print(h); Serial.print(" m:"); Serial.println(m); if (m==0) { displayHours(h); } else if (m == 1) { displayMinutes(m); displayMinutt(); displayOver(); displayHours(h); } else if (m == 15) { displayKvart(); displayOver(); displayHours(h); } else if (m == 29) { displayMinutes(30-m); displayMinutt(); displayPa(); displayHalv(); displayHours(h+1); } else if (m == 30) { displayHalv(); displayHours(h+1); } else if (m == 31) { displayMinutes(m-30); displayMinutt(); displayOver(); displayHalv(); displayHours(h+1); } else if (m == 45) { displayKvart(); displayPa(); displayHours(h+1); } else if (m == 59) { displayMinutes(60-m); displayMinutt(); displayPa(); displayHours(h+1); } else if (m < 20) { // 1-19 displayMinutes(m); displayMinutter(); displayOver(); displayHours(h); } else if (m > 19 && m < 30) { //20 - 29 displayMinutes(30-m); displayMinutter(); displayPa(); displayHalv(); displayHours(h+1); } else if (m > 30 && m < 41) { // 31 - 39 displayMinutes(m-30); displayMinutter(); displayOver(); displayHalv(); displayHours(h+1); } else if (m > 40) { // 40- 60 displayMinutes(60-m); displayMinutter(); displayPa(); displayHours(h+1); } else { Serial.print("Wrong minute value"); Serial.println(m); } } void displayPa() { turnOnLED(122); turnOnLED(137); Serial.println("PÅ"); } void displayOver() { turnOnLED(1); turnOnLED(18); turnOnLED(25); turnOnLED(42); Serial.println("Over"); } void displayHalv() { turnOnLED(66); turnOnLED(73); turnOnLED(90); turnOnLED(97); Serial.println("Halv"); } void displayKvart() { turnOnLED(56); turnOnLED(59); turnOnLED(80); turnOnLED(83); turnOnLED(104); Serial.println("Kvart"); } /*void displayOK(int t) { turnOnLED(125); turnOnLED(140); Serial.println("OK"); }*/ void displayDot( ) { turnOnLED(8); turnOnLED(7); turnOnLED(6); Serial.println("Dot"); } void displayWiFi( ) { turnOnLED(5); turnOnLED(4); turnOnLED(3); turnOnLED(2); Serial.println("WiFi"); } void displayKlokkaErNa( ) { turnOnLED(9); turnOnLED(10); turnOnLED(33); turnOnLED(34); turnOnLED(57); turnOnLED(58); turnOnLED(82); turnOnLED(105); turnOnLED(129); turnOnLED(130); Serial.println("KlokkaErNå"); } void displayMinutt( ) { turnOnLED(17); turnOnLED(26); turnOnLED(41); turnOnLED(50); turnOnLED(65); turnOnLED(74); Serial.println("Minutt"); } void displayMinutter( ) { displayMinutt(); turnOnLED(89); turnOnLED(98); Serial.println("-er"); } void displayEN( ) { turnOnLED(114); turnOnLED(121); Serial.println("EN"); } void display0( ) { turnOnLED(23); Serial.println("0"); } void displayMinutes(byte m) { Serial.print("Minutt:"); Serial.println(m); switch (m) { case 0 : break; case 1 : turnOnLED(84); turnOnLED(103); turnOnLED(108); break; case 2 : turnOnLED(12); turnOnLED(31); break; case 3 : turnOnLED(60); turnOnLED(79); turnOnLED(84); break; case 4 : turnOnLED(102); turnOnLED(109); turnOnLED(126); turnOnLED(133); break; case 5 : turnOnLED(107); turnOnLED(128); turnOnLED(131); break; case 6 : turnOnLED(13); turnOnLED(30); turnOnLED(37); turnOnLED(54); break; case 7 : turnOnLED(11); turnOnLED(32); turnOnLED(35); break; case 8 : turnOnLED(15); turnOnLED(28); turnOnLED(39); turnOnLED(52); break; case 9 : turnOnLED(77); turnOnLED(86); break; case 10 : turnOnLED(124); turnOnLED(135); break; case 11 : turnOnLED(52); turnOnLED(63); turnOnLED(76); turnOnLED(87); turnOnLED(100); turnOnLED(111); break; case 12 : turnOnLED(12); turnOnLED(31); turnOnLED(36); turnOnLED(55); break; case 13 : turnOnLED(60); turnOnLED(79); turnOnLED(84); turnOnLED(103); turnOnLED(108); turnOnLED(127); turnOnLED(132); break; case 14 : turnOnLED(3); turnOnLED(16); turnOnLED(27); turnOnLED(40); turnOnLED(51); turnOnLED(64); turnOnLED(75); // case 15 : // KVART break; case 16 : turnOnLED(13); turnOnLED(30); turnOnLED(37); turnOnLED(54); turnOnLED(61); turnOnLED(78); turnOnLED(85); break; case 17 : turnOnLED(14); turnOnLED(29); turnOnLED(38); turnOnLED(53); turnOnLED(62); turnOnLED(77); break; case 18 : turnOnLED(88); turnOnLED(99); turnOnLED(112); turnOnLED(123); turnOnLED(136); break; case 19 : turnOnLED(77); turnOnLED(86); turnOnLED(101); turnOnLED(110); turnOnLED(125); turnOnLED(134); break; default: Serial.print("Wrong minute value"); Serial.println(m); break; } } void displayHours(byte h) { Serial.print("Hour:"); Serial.println(h); switch (h) { case 0 : case 12 : case 24 : turnOnLED(20); turnOnLED(23); turnOnLED(44); turnOnLED(47); break; case 1 : case 13 : turnOnLED(117); turnOnLED(118); turnOnLED(141); break; case 2 : case 14 : turnOnLED(20); turnOnLED(23); break; case 3 : case 15 : turnOnLED(68); turnOnLED(71); turnOnLED(92); break; case 4 : case 16: turnOnLED(0); turnOnLED(19); turnOnLED(24); turnOnLED(43); break; case 5 : case 17 : turnOnLED(95); turnOnLED(116); turnOnLED(119); break; case 6 : case 18 : turnOnLED(48); turnOnLED(67); turnOnLED(72); turnOnLED(91); break; case 7 : case 19 : turnOnLED(91); turnOnLED(96); turnOnLED(115); break; case 8 : case 20 : turnOnLED(21); turnOnLED(22); turnOnLED(45); turnOnLED(46); break; case 9 : case 21 : turnOnLED(121); turnOnLED(138); break; case 10 : case 22 : turnOnLED(120); turnOnLED(139); break; case 11 : case 23 : turnOnLED(46); turnOnLED(69); turnOnLED(70); turnOnLED(93); turnOnLED(94); turnOnLED(117); break; default: Serial.print("Wrong hour value"); Serial.println(h); break; } } void turnOnLED(byte ledNr) { // leds[ledNr-1] = CRGBW(0, 0, 0, 255); leds[ledNr] = CRGBW(255, 255, 255, 255); } void setAll(byte red, byte green, byte blue, byte white) { for(int i = 0; i < NUM_LEDS; i++ ) { leds[i] = CRGBW( red, green, blue, white); } } void displayIP() { char cIP[] = "000.000.000.000"; WiFi.localIP().toString().toCharArray(cIP, 16); Serial.print("Current IP:"); Serial.println(cIP); for(int i = 0; i<15; i++ ) { setAll(0,0,0,0); display_IPsiffer(cIP[i]); FastLED.show(); delay(1000); setAll(0,0,0,0); FastLED.show(); delay(500); } delay(2000); } void display_IPsiffer(char c) { switch (c) { case '.': displayDot(); break; case '1' : displayEN(); break; case '0' : display0(); break; default: displayHours(atoi(&c)-atoi("0")); } } 1 Siter
Fred-Stian Skrevet 31. mars 2023 Skrevet 31. mars 2023 Heisann! Jeg har en plan om å prøve meg på denne fantastisk stilige klokken, men Arduino / programmerings kunnskapen er ikke helt på topp så jeg spør; Jeg skal bruke en WS2812B som er noe tilsvarende SK6812 såvidt jeg skjønner. Har 60 LEDs per meter, så får gå over når hvilke LED skal være på, skilles disse da enkelt med komma når jeg kommer så langt? F.eks: case 22 : turnOnLED(120,121); turnOnLED(139,140); Men jeg får en del feilmeldinger i forbindelse med forskjellige library. Kan @Fermate linke til libraryene du har brukt? Sitat Arduino: 1.8.19 (Windows 10), Board: "ESP32-WROOM-DA Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled" In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:74:38: error: stray '\302' in program <title>Lamp/FastLED_RGBW.h at main · Charles-Goodwin/Lamp · GitHub</title> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:74:39: error: stray '\267' in program <title>Lamp/FastLED_RGBW.h at main · Charles-Goodwin/Lamp · GitHub</title> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:74:62: error: stray '\302' in program <title>Lamp/FastLED_RGBW.h at main · Charles-Goodwin/Lamp · GitHub</title> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:74:63: error: stray '\267' in program <title>Lamp/FastLED_RGBW.h at main · Charles-Goodwin/Lamp · GitHub</title> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:561:10: error: missing terminating ' character <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" role="search" aria-label="Site" data-scope-type="Repository" data-scope-id="337516061" data-scoped-search-url="/Charles-Goodwin/Lamp/search" data-owner-scoped-search-url="/users/Charles-Goodwin/search" data-unscoped-search-url="/search" data-turbo="false" action="/Charles-Goodwin/Lamp/search" accept-charset="UTF-8" method="get"> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:618:75: error: stray '\342' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:618:76: error: stray '\206' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:618:77: error: stray '\265' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:623:56: error: stray '\342' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:623:57: error: stray '\206' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:623:58: error: stray '\265' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:665:75: error: stray '\342' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:665:76: error: stray '\206' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:665:77: error: stray '\265' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:670:56: error: stray '\342' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:670:57: error: stray '\206' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:670:58: error: stray '\265' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:703:75: error: stray '\342' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:703:76: error: stray '\206' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:703:77: error: stray '\265' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:708:56: error: stray '\342' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:708:57: error: stray '\206' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:708:58: error: stray '\265' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:741:75: error: stray '\342' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:741:76: error: stray '\206' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:741:77: error: stray '\265' in program <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:746:56: error: stray '\342' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:746:57: error: stray '\206' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:746:58: error: stray '\265' in program <span class="d-inline-block ml-1 v-align-middle">↵</span> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1138:25: error: missing terminating " character data-action=" ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1139:41: error: stray '#' in program input-entered:ref-selector#inputEntered ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1140:40: error: stray '#' in program tab-selected:ref-selector#tabSelected ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1141:38: error: stray '#' in program focus-list:ref-selector#focusFirstListMember ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1142:13: error: missing terminating " character " ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1191:25: error: missing terminating " character data-action=" ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1192:41: error: stray '#' in program input-entered:ref-selector#inputEntered ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1193:40: error: stray '#' in program tab-selected:ref-selector#tabSelected ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1194:38: error: stray '#' in program focus-list:ref-selector#focusFirstListMember ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1195:13: error: missing terminating " character " ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1382:8: error: missing terminating ' character <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="BtnGroup-parent js-update-url-with-hash " data-turbo="false" action="/Charles-Goodwin/Lamp/edit/main/FastLED_RGBW.h" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="6r6CMlqCpFWcjK-lRh8g97y1tLemYlMazJECDfj1II1E9d0lJVag5hQA1tTSClyZ7R6JoiBUw5pEtWw3vZp_Qw" autocomplete="off" /> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1392:16: error: missing terminating ' character <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="SelectMenu-item js-update-url-with-hash " data-turbo="false" action="/Charles-Goodwin/Lamp/edit/main/FastLED_RGBW.h" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="P4toDfHZGtGspZCmGp4I6ohunofgjTx4JfwyP91hfPyRwDcajg0eYiQp6deOi3SE2cWjkma7rPit2FwFmA4jMg" autocomplete="off" /> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1578:72: error: stray '#' in program <td id="LC10" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">ifndef</span> FastLED_RGBW_h</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1582:72: error: stray '#' in program <td id="LC11" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">FastLED_RGBW_h</span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1591:72: error: stray '#' in program <td id="LC13" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>FastLED.h<span class="pl-pds">></span></span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1693:72: error: stray '#' in program <td id="LC38" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> SCALE8_C == 1</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1717:72: error: stray '#' in program <td id="LC44" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">elif</span> SCALE8_AVRASM == 1</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1741:72: error: stray '#' in program <td id="LC50" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">else</span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1745:72: error: stray '#' in program <td id="LC51" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">error</span> "No implementation for nscale8x3 available."</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1749:72: error: stray '#' in program <td id="LC52" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:2430:73: error: stray '#' in program <td id="LC218" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">if</span> FASTLED_SCALE8_FIXED == 1</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:2438:73: error: stray '#' in program <td id="LC220" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">else</span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:2446:73: error: stray '#' in program <td id="LC222" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:2450:191: error: stray '\' in program <td id="LC223" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">uint8_t</span> avg = <span class="pl-c1">scale8_LEAVING_R1_DIRTY</span>( r, eightyfive) + \</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:2454:150: error: stray '\' in program <td id="LC224" class="blob-code blob-code-inner js-file-line"> <span class="pl-c1">scale8_LEAVING_R1_DIRTY</span>( g, eightyfive) + \</td> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3911:73: error: stray '#' in program <td id="LC583" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">endif</span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3953:12: error: missing terminating ' character <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-jump-to-line-form Box-body d-flex" data-turbo="false" action="" accept-charset="UTF-8" method="get"> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:4028:12: error: stray '\342' in program You can’t perform that action at this time. ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:4028:13: error: stray '\200' in program You can’t perform that action at this time. ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:4028:14: error: stray '\231' in program You can’t perform that action at this time. ^ In file included from C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:94, from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:1: C:\Users\freds\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\libraries\WebServer\src/WebServer.h:177:15: error: cannot declare field 'WebServer::_server' to be of abstract type 'WiFiServer' WiFiServer _server; ^~~~~~~ In file included from C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:32, from C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:85, from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:1: C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFiServer.h:31:7: note: because the following virtual functions are pure within 'WiFiServer': class WiFiServer : public Server { ^~~~~~~~~~ In file included from C:\Users\freds\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\cores\esp32/Arduino.h:182, from sketch\Klokke-test.ino.cpp:1: C:\Users\freds\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\cores\esp32/Server.h:28:18: note: 'virtual void Server::begin(uint16_t)' virtual void begin(uint16_t port=0) =0; ^~~~~ In file included from C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:94, from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:1: C:\Users\freds\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\libraries\WebServer\src/WebServer.h: In member function 'virtual size_t WebServer::_currentClientWrite_P(const char*, size_t)': C:\Users\freds\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\libraries\WebServer\src/WebServer.h:151:83: error: 'class WiFiClient' has no member named 'write_P'; did you mean 'write'? virtual size_t _currentClientWrite_P(PGM_P b, size_t l) { return _currentClient.write_P( b, l ); } ^~~~~~~ write In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:1: C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h: At global scope: C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:532:5: error: 'WiFiMode_t' does not name a type; did you mean 'wifi_mode_t'? WiFiMode_t _usermode = WIFI_STA; // Default user mode ^~~~~~~~~~ wifi_mode_t C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:551:5: error: 'wifi_event_id_t' does not name a type; did you mean 'wifi_event_t'? wifi_event_id_t wm_event_id = 0; ^~~~~~~~~~~~~~~ wifi_event_t C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:670:29: error: 'WiFiMode_t' has not been declared bool WiFi_Mode(WiFiMode_t m); ^~~~~~~~~~ C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:671:29: error: 'WiFiMode_t' has not been declared bool WiFi_Mode(WiFiMode_t m,bool persistent); ^~~~~~~~~~ C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:717:26: error: 'WiFiEvent_t' has not been declared void WiFiEvent(WiFiEvent_t event, arduino_event_info_t info); ^~~~~~~~~~~ C:\Users\freds\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:717:45: error: 'arduino_event_info_t' has not been declared void WiFiEvent(WiFiEvent_t event, arduino_event_info_t info); ^~~~~~~~~~~~~~~~~~~~ In file included from C:\Program Files (x86)\Arduino\libraries\FastLED\src/FastLED.h:75, from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:3: C:\Program Files (x86)\Arduino\libraries\FastLED\src/fastspi.h:157: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" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:8:1: error: expected unqualified-id before '<' token <!DOCTYPE html> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:209:23: error: 'up' does not name a type; did you mean 'dup'? Sign up ^~ dup In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:432:19: error: 'Automation' does not name a type; did you mean 'eNoAction'? CI/CD & Automation ^~~~~~~~~~ eNoAction C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:810:25: error: expected unqualified-id before '<' token <div>{{ message }}</div> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1177:97: error: expected unqualified-id before '<' token <span class="flex-1 css-truncate css-truncate-overflow {{ isFilteringClass }}">{{ refName }}</span> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1219:97: error: expected unqualified-id before '<' token <span class="flex-1 css-truncate css-truncate-overflow {{ isFilteringClass }}">{{ refName }}</span> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1339:61: error: expected unqualified-id before '<' token <div class="Skeleton Skeleton--text col-5 ml-2"> </div> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1343:56: error: expected unqualified-id before '<' token <div class="Skeleton Skeleton--text col-1"> </div> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1591:151: error: expected unqualified-id before '<' token <td id="LC13" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>FastLED.h<span class="pl-pds">></span></span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1591:192: error: expected unqualified-id before '<' token <td id="LC13" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>FastLED.h<span class="pl-pds">></span></span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1620:192: error: 'r' does not name a type <td id="LC20" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1620:235: error: 'g' does not name a type <td id="LC20" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1620:278: error: 'b' does not name a type <td id="LC20" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1620:321: error: 'w' does not name a type <td id="LC20" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1648:73: error: expected unqualified-id before '<' token <td id="LC27" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1685:198: error: 'r' does not name a type <td id="LC36" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4_video</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1685:241: error: 'g' does not name a type <td id="LC36" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4_video</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1685:284: error: 'b' does not name a type <td id="LC36" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4_video</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1685:327: error: 'w' does not name a type <td id="LC36" class="blob-code blob-code-inner js-file-line">LIB8STATIC <span class="pl-k">void</span> <span class="pl-en">nscale8x4_video</span>( <span class="pl-c1">uint8_t</span>& r, <span class="pl-c1">uint8_t</span>& g, <span class="pl-c1">uint8_t</span>& b, <span class="pl-c1">uint8_t</span>& w, fract8 scale)</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:1753:73: error: expected unqualified-id before '<' token <td id="LC53" class="blob-code blob-code-inner js-file-line">}</td> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3300:75: error: expected unqualified-id before '<' token <td id="LC434" class="blob-code blob-code-inner js-file-line">};</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3325:78: error: expected unqualified-id before '<' token <td id="LC440" class="blob-code blob-code-inner js-file-line"> }</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3343:165: error: 'color' does not name a type <td id="LC444" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">struct</span> CRGB& color)</td> ^~~~~ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3363:74: error: expected unqualified-id before '<' token <td id="LC449" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3392:74: error: expected unqualified-id before '<' token <td id="LC456" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3413:74: error: expected unqualified-id before '<' token <td id="LC461" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3440:212: error: expected unqualified-id before '<' token <td id="LC467" class="blob-code blob-code-inner js-file-line"><span class="pl-c1">uint16_t</span> <span class="pl-en">XY</span>( <span class="pl-c1">uint8_t</span>, <span class="pl-c1">uint8_t</span>);<span class="pl-c"><span class="pl-c">//</span> __attribute__ ((weak));</span></td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3566:74: error: expected unqualified-id before '<' token <td id="LC498" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3598:74: error: expected unqualified-id before '<' token <td id="LC506" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3683:74: error: expected unqualified-id before '<' token <td id="LC527" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3703:74: error: expected unqualified-id before '<' token <td id="LC532" class="blob-code blob-code-inner js-file-line">}</td> ^ C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3716:166: error: 'CRGBWColor' does not name a type; did you mean 'HeatColor'? <td id="LC535" class="blob-code blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-k">struct</span> CRGBW& CRGBWColor)</td> ^~~~~~~~~~ HeatColor C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3736:74: error: expected unqualified-id before '<' token <td id="LC540" class="blob-code blob-code-inner js-file-line">}</td> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3897:74: error: expected unqualified-id before '<' token <td id="LC580" class="blob-code blob-code-inner js-file-line">}</td> ^ In file included from C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:4: C:\Program Files (x86)\Arduino\libraries\FastLED_RGBW.h/FastLED_RGBW.h:3988:16: error: expected unqualified-id before numeric constant © 2023 GitHub, Inc. ^~~~ Klokke-test:11:27: error: 'leds' was not declared in this scope CRGB *ledsRGB = (CRGB *) &leds[0]; ^~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:11:27: note: suggested alternative: 'gets' CRGB *ledsRGB = (CRGB *) &leds[0]; ^~~~ gets C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino: In function 'void setup()': Klokke-test:36:52: error: 'getRGBWsize' was not declared in this scope FastLED.addLeds<WS2812B, DATA_PIN, RGB>(ledsRGB, getRGBWsize(NUM_LEDS)); ^~~~~~~~~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:36:52: note: suggested alternative: 'getpagesize' FastLED.addLeds<WS2812B, DATA_PIN, RGB>(ledsRGB, getRGBWsize(NUM_LEDS)); ^~~~~~~~~~~ getpagesize Klokke-test:64:10: error: 'class WiFiClass' has no member named 'mode' WiFi.mode(WIFI_AP_STA); ^~~~ Klokke-test:64:15: error: 'WIFI_AP_STA' was not declared in this scope WiFi.mode(WIFI_AP_STA); ^~~~~~~~~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:64:15: note: suggested alternative: 'WIFI_IF_STA' WiFi.mode(WIFI_AP_STA); ^~~~~~~~~~~ WIFI_IF_STA Klokke-test:74:10: error: 'class WiFiClass' has no member named 'printDiag' WiFi.printDiag(Serial); ^~~~~~~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino: In function 'void loop()': Klokke-test:95:10: error: 'class WiFiClass' has no member named 'printDiag' WiFi.printDiag(Serial); ^~~~~~~~~ Klokke-test:100:10: error: 'class WiFiClass' has no member named 'printDiag' WiFi.printDiag(Serial); ^~~~~~~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino: In function 'void turnOnLED(byte)': Klokke-test:526:3: error: 'leds' was not declared in this scope leds[ledNr] = CRGBW(255, 255, 255, 255); ^~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:526:3: note: suggested alternative: 'ledNr' leds[ledNr] = CRGBW(255, 255, 255, 255); ^~~~ ledNr Klokke-test:526:17: error: 'CRGBW' was not declared in this scope leds[ledNr] = CRGBW(255, 255, 255, 255); ^~~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:526:17: note: suggested alternative: 'CRGB' leds[ledNr] = CRGBW(255, 255, 255, 255); ^~~~~ CRGB C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino: In function 'void setAll(byte, byte, byte, byte)': Klokke-test:531:5: error: 'leds' was not declared in this scope leds[i] = CRGBW( red, green, blue, white); ^~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:531:5: note: suggested alternative: 'red' leds[i] = CRGBW( red, green, blue, white); ^~~~ red Klokke-test:531:15: error: 'CRGBW' was not declared in this scope leds[i] = CRGBW( red, green, blue, white); ^~~~~ C:\Users\freds\Documents\Arduino\Klokke-test\Klokke-test.ino:531:15: note: suggested alternative: 'CRGB' leds[i] = CRGBW( red, green, blue, white); ^~~~~ CRGB exit status 1 'leds' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Siter
Fermate Skrevet 3. april 2023 Forfatter Skrevet 3. april 2023 Fred-Stian skrev (På 31.3.2023 den 22.57): Har 60 LEDs per meter, så får gå over når hvilke LED skal være på, skilles disse da enkelt med komma når jeg kommer så langt? F.eks: case 22 : turnOnLED(120,121); turnOnLED(139,140); Nei, subrutinekall med parametere i C++ fungerer ikkke på den måten. Du må skrive: turnOnLED(120); turnOnLED(121); turnOnLED(139); turnOnLED(140); osv Les deg litt opp på C++ subrutiner så går det bra. Først og fremst. Er det en RGBW led stripe du har eller en RGB stripe? Om du har RGB trenger du ikke det biblioteket. Da må du bruke det vanlige Fast_led mener jeg å huske?) Siter
Fermate Skrevet 1. februar Forfatter Skrevet 1. februar @Fred-Stian Åssen gikk det? Trenger du mere tips? Siter
Anbefalte innlegg
Bli med i samtalen
Du kan publisere innhold nå og registrere deg senere. Hvis du har en konto, logg inn nå for å poste med kontoen din.