Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------Here is the output that you asked for.------------------
- 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
- In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:5:0,
- from Cylon.ino:1:
- 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]
- In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:6:0,
- from Cylon.ino:1:
- 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]
- In file included from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/fastspi.h:6:0,
- from C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/FastLED.h:6,
- from Cylon.ino:1:
- 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]':
- C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
- 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]':
- C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
- 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]':
- C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
- 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]':
- C:\Users\Matthew\Desktop\arduino-1.0.5-r2\libraries\FastLED/delay.h:35:4: error: unknown register name 'r16' in 'asm'
- -----------Here is the code from the program. ---------------
- #include "FastLED.h"
- // How many leds in your strip?
- #define NUM_LEDS 40
- // For led chips like Neopixels, which have a data line, ground, and power, you just
- // need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
- // ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
- #define DATA_PIN 6
- #define CLOCK_PIN 13
- // Define the array of leds
- CRGB leds[NUM_LEDS];
- void setup() {
- FastLED.addLeds<NEOPIXEL,DATA_PIN>(leds, NUM_LEDS);
- }
- void loop() {
- // First slide the led in one direction
- for(int i = 0; i < NUM_LEDS; i++) {
- // Set the i'th led to red
- leds[i] = CRGB::Red;
- // Show the leds
- FastLED.show();
- // now that we've shown the leds, reset the i'th led to black
- leds[i] = CRGB::Black;
- // Wait a little bit before we loop around and do it again
- delay(30);
- }
- // Now go in the other direction.
- for(int i = NUM_LEDS-1; i >= 0; i--) {
- // Set the i'th led to red
- leds[i] = CRGB::Red;
- // Show the leds
- FastLED.show();
- // now that we've shown the leds, reset the i'th led to black
- leds[i] = CRGB::Black;
- // Wait a little bit before we loop around and do it again
- delay(30);
- }
- }
- -----------My teensy 3.1 info-------------
- The device is powered via usb connection
- Here are pictures of it.
- http://imgur.com/zb30XwM
- http://imgur.com/7FWg8R5
- ------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement