Sto scrivendo un programma per utilizzare più strisce led sul cloud di arduino con la libreria FastLED ma quando vado a compilare mi esce l'errore che la piattaforma non è accessibile a questa libreria.
In file included from /home/builder/Arduino/libraries/fastled_3_6_0/src/FastLED.h:51:0, from /tmp/2746213899/stati_dec13a/stati_dec13a.ino:3: /home/builder/Arduino/libraries/fastled_3_6_0/src/led_sysdefs.h:61:2: error: #error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options." #error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options." ^~~~~ Multiple libraries were found for "RTC.h" Used: /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.0.5/libraries/RTC Not used: /home/builder/opt/libraries/m5station_0_0_1 Not used: /home/builder/opt/libraries/m5stickc_0_2_9 Not used: /home/builder/opt/libraries/m5stickcplus_0_1_0 Not used: /home/builder/opt/libraries/m5core2_0_1_8 Error during build: exit status 1
Sto utilizzando il nuovo arduino UNO R4 wi-fi per questo progetto, programmandolo dal cloud di arduino con il seguente codice:
// Adafruit NeoPixel - Version: Latest
#include <FastLED.h>
#include "thingProperties.h"
#define NUM_STRIPS 3
#define NUM_LED1 300 //finestra
#define NUM_LED2 58 //scrivania
#define NUM_LED3 242 //plettro
CRGB led1[NUM_LED1];
CRGB led2[NUM_LED2];
CRGB led3[NUM_LED3];
#define FRAMES_PER_SECOND 120
int stato = 0, a = 0, s = 0, s1 = 0;
int p0_new = 0, p0_old = 0, p1_new = 0, p1_old = 0, fronte_p = 0;
int p2_new = 0, p2_old = 0, p3_new = 0, p3_old = 0, fronte_p2 = 0;
void setup() {
Serial.begin(9600);
delay(1500);
initProperties();
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
FastLED.addLeds<NEOPIXEL, A0>(led1, NUM_LED1);
FastLED.addLeds<NEOPIXEL, A1>(led2, NUM_LED2);
FastLED.addLeds<NEOPIXEL, A2>(led3, NUM_LED3);
pinMode(4, INPUT);
pinMode(5, INPUT);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
FastLED.setBrightness(val);
p0_new = pulsante;
p1_new = digitalRead(4);
if ((p0_new == 1) && (p0_old == 0) || (p1_new == 1) && (p1_old == 0))
fronte_p = 1;
p2_new = pulsante2;
p3_new = digitalRead(5);
if ((p2_new == 1) && (p2_old == 0) || (p3_new == 1) && (p3_old == 0))
fronte_p2 = 1;
switch (stato) {
case 0:
if (fronte_p == 1)
stato = 1;
if (fronte_p2 == 1)
stato = 3;
break;
case 1:
digitalWrite(2, 1);
digitalWrite(3, 0);
if (fronte_p == 1)
stato++;
if (fronte_p2 == 1)
stato--;
break;
case 2:
digitalWrite(2, 0);
digitalWrite(3, 1);
if (fronte_p == 1)
stato++;
if (fronte_p2 == 1)
stato--;
break;
case 3:
if (millis() > a + 1000) {
a = millis();
if (s == 0) {
s = 1;
s1 = 0;
}
else {
s = 0;
s1 = 1;
}
}
digitalWrite(2, s);
digitalWrite(3, s1);
if (fronte_p == 1)
stato = 0;
if (fronte_p2 == 1)
stato--;
break;
}
p0_old = p0_new;
p1_old = p1_new;
fronte_p = 0;
p2_old = p2_new;
p3_old = p3_new;
fronte_p2 = 0;
}
void onPulsanteChange() {
Serial.print("Pulsante status changed:");
Serial.println(pulsante);
}
void onPulsante2Change() {
Serial.print("Pulsante2 status changed:");
Serial.println(pulsante2);
}
void onValChange() {
Serial.print("Val status changed:");
Serial.println(val);
}
Grazie per eventuali risposte;)