Hi Guys:
I have a Mac Mojave 10.14.16, and I am trying to compile a sketch (attached below) but if I load it with arduino Uno it works but does not upload to Arduino UNO WIFI rev2 (seems logic) and when I swap to Arduino UNO WIFI rev2 on the tools menu, does not compile and obviously upload. Can anyone help me?
Sketch:
#include "FastLED.h"
#define NUM_LEDS 240
CRGB leds[NUM_LEDS];
#define PIN 6
void setup()
{
FastLED.addLeds<SK6812, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
}
void loop() {
colorWipe(0x00,0xff,0x00, 50);
colorWipe(0x00,0x00,0x00, 50);
}
void colorWipe(byte red, byte green, byte blue, int SpeedDelay) {
for(uint16_t i=0; i<NUM_LEDS; i++) {
setPixel(i, red, green, blue);
showStrip();
delay(SpeedDelay);
}
}
void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
// NeoPixel
strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
// FastLED
FastLED.show();
#endif
}
void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
// NeoPixel
strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
// FastLED
leds[Pixel].r = red;
leds[Pixel].g = green;
leds[Pixel].b = blue;
#endif
}
void setAll(byte red, byte green, byte blue) {
for(int i = 0; i < NUM_LEDS; i++ ) {
setPixel(i, red, green, blue);
}
showStrip();
}
Error:
Arduino:1.8.12 (Mac OS X), Tarjeta:"Arduino Uno WiFi Rev2, None (ATMEGA4809)"
In file included from /Users/CescMac/Desktop/leds/ESCALA_BO/ESCALA_BO.ino:1:0:
/Users/CescMac/Documents/Arduino/libraries/FastLED/FastLED.h:585:2: warning: #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info." [-Wcpp]
#warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info."
^~~~~~~
In file included from /Users/CescMac/Desktop/leds/ESCALA_BO/ESCALA_BO.ino:1:0:
/Users/CescMac/Documents/Arduino/libraries/FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003
pragma message "FastLED version 3.003.003"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
(......)
exit status 1
Error compilando para la tarjeta Arduino Uno WiFi Rev2.
Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.