Guest User

Untitled

a guest
Apr 23rd, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. #include <FastLED.h>
  2.  
  3. #define DATA_PIN 13//changed
  4. #define CLOCK_PIN 14 //changed
  5. #define COLOR_ORDER BGR
  6. #define CHIPSET APA102
  7. #define NUM_LEDS 50
  8.  
  9. #define BRIGHTNESS 200
  10. #define FRAMES_PER_SECOND 60
  11.  
  12. CRGB leds[NUM_LEDS];
  13.  
  14. void setup() {
  15. delay(3000); // sanity delay
  16. FastLED.addLeds<CHIPSET, DATA_PIN, CLOCK_PIN, COLOR_ORDER>(leds, NUM_LEDS);//changed
  17. FastLED.setBrightness( BRIGHTNESS );
  18. }
  19.  
  20. void loop()
  21. {
  22. // Add entropy to random number generator; we use a lot of it.
  23. // random16_add_entropy( random());//changed(commented out)
  24.  
  25.  
  26. ////////////////////////////////////////////////////////////// Error
  27.  
  28. In file included from H:\Documents\Arduino\strandtest\strandtest.ino:1:0:
  29.  
  30. C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.003
  31.  
  32. # pragma message "FastLED version 3.001.003"
  33.  
  34. ^
  35.  
  36. In file included from C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/FastLED.h:65:0,
  37.  
  38. from H:\Documents\Arduino\strandtest\strandtest.ino:1:
  39.  
  40. 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
  41.  
  42. # pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
  43.  
  44. ^
  45.  
  46. 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
  47. libraries\FastLED-3.1.3\colorutils.cpp.o: In function `HeatColor(unsigned char)':
  48.  
  49. C:\Program Files (x86)\Arduino\libraries\FastLED-3.1.3/colorutils.cpp:441: multiple definition of `HeatColor(unsigned char)'
  50.  
  51. sketch\strandtest.ino.cpp.o:H:\Documents\Arduino\strandtest/strandtest.ino:115: first defined here
  52.  
  53. collect2.exe: error: ld returned 1 exit status
  54.  
  55. exit status 1
  56. Error compiling for board Adafruit HUZZAH ESP8266.
Advertisement
Add Comment
Please, Sign In to add comment