Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define DATA_PIN 13//changed
- #define CLOCK_PIN 14 //changed
- #define COLOR_ORDER BGR
- #define CHIPSET APA102
- #define NUM_LEDS 50
- #define BRIGHTNESS 200
- #define FRAMES_PER_SECOND 60
- CRGB leds[NUM_LEDS];
- void setup() {
- delay(3000); // sanity delay
- FastLED.addLeds<CHIPSET, DATA_PIN, CLOCK_PIN, COLOR_ORDER>(leds, NUM_LEDS);//changed
- FastLED.setBrightness( BRIGHTNESS );
- }
- void loop()
- {
- // Add entropy to random number generator; we use a lot of it.
- // random16_add_entropy( random());//changed(commented out)
- ////////////////////////////////////////////////////////////// Error
- In file included from H:\Documents\Arduino\strandtest\strandtest.ino:1:0:
- C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.003
- # pragma message "FastLED version 3.001.003"
- ^
- In file included from C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/FastLED.h:65:0,
- from H:\Documents\Arduino\strandtest\strandtest.ino:1:
- C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/fastspi.h:110: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"
- ^
- Archiving built core (caching) in: C:\Users\Matt\AppData\Local\Temp\arduino_cache_937557\core\core_esp8266_esp8266_huzzah_CpuFrequency_80,UploadSpeed_115200,FlashSize_4M3M_a30d7ee30accef3531f5e6d5638b3efb.a
- libraries\FastLED-3.1.3\colorutils.cpp.o: In function `HeatColor(unsigned char)':
- C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/colorutils.cpp:441: multiple definition of `HeatColor(unsigned char)'
- sketch\strandtest.ino.cpp.o:H:\Documents\Arduino\strandtest/strandtest.ino:115: first defined here
- collect2.exe: error: ld returned 1 exit status
- exit status 1
- Error compiling for board Adafruit HUZZAH ESP8266.
Advertisement
Add Comment
Please, Sign In to add comment