Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. ---------------Here is the output that you asked for.------------------
  2.  
  3. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -DF_CPU=96000000 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -mthumb -nostdlib -D__MK20DX256__ -DTEENSYDUINO=118 -fno-rtti -felide-constructors -std=gnu++0x -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IC:\Users\Matthew\Desktop\arduino-1.0.5-r2\hardware\teensy\cores\teensy3 -IC:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED C:\Users\Matthew\AppData\Local\Temp\build2755449505986431448.tmp\Cylon.cpp -o C:\Users\Matthew\AppData\Local\Temp\build2755449505986431448.tmp\Cylon.cpp.o
  4. In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:5:0,
  5. from Cylon.ino:1:
  6. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/fastpin.h:419:2: warning: #warning "No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info." [-Wcpp]
  7. In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:6:0,
  8. from Cylon.ino:1:
  9. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/fastspi.h:78:2: warning: #warning "No hardware SPI pins defined. All SPI access will default to bitbanged output" [-Wcpp]
  10. In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/fastspi.h:6:0,
  11. from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:6,
  12. from Cylon.ino:1:
  13. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void _delaycycles_AVR() [with int LOOP = 6; int PAD = 0]':
  14. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
  15. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void _delaycycles_AVR() [with int LOOP = 5; int PAD = 1]':
  16. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
  17. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void _delaycycles_AVR() [with int LOOP = 6; int PAD = 1]':
  18. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
  19. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h: In function 'void _delaycycles_AVR() [with int LOOP = 4; int PAD = 2]':
  20. C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
  21.  
  22.  
  23. -----------Here is the code from the program. ---------------
  24.  
  25. #include "FastLED.h"
  26.  
  27. // How many leds in your strip?
  28. #define NUM_LEDS 40
  29.  
  30. // For led chips like Neopixels, which have a data line, ground, and power, you just
  31. // need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
  32. // ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
  33. #define DATA_PIN 6
  34. #define CLOCK_PIN 13
  35.  
  36. // Define the array of leds
  37. CRGB leds[NUM_LEDS];
  38.  
  39. void setup() {
  40. FastLED.addLeds<NEOPIXEL,DATA_PIN>(leds, NUM_LEDS);
  41. }
  42.  
  43. void loop() {
  44. // First slide the led in one direction
  45. for(int i = 0; i < NUM_LEDS; i++) {
  46. // Set the i'th led to red
  47. leds[i] = CRGB::Red;
  48. // Show the leds
  49. FastLED.show();
  50. // now that we've shown the leds, reset the i'th led to black
  51. leds[i] = CRGB::Black;
  52. // Wait a little bit before we loop around and do it again
  53. delay(30);
  54. }
  55.  
  56. // Now go in the other direction.
  57. for(int i = NUM_LEDS-1; i >= 0; i--) {
  58. // Set the i'th led to red
  59. leds[i] = CRGB::Red;
  60. // Show the leds
  61. FastLED.show();
  62. // now that we've shown the leds, reset the i'th led to black
  63. leds[i] = CRGB::Black;
  64. // Wait a little bit before we loop around and do it again
  65. delay(30);
  66. }
  67. }
  68.  
  69.  
  70. -----------My teensy 3.1 info-------------
  71. The device is powered via usb connection
  72.  
  73. Here are pictures of it.
  74. http://imgur.com/zb30XwM
  75. http://imgur.com/7FWg8R5
  76.  
  77. ------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement