reneric / ultrasonic-neopixel-parking-sensor

Garage Parking Sensor
5 stars 3 forks source link

error #2

Open compguy57 opened 5 years ago

compguy57 commented 5 years ago

Arduino: 1.8.9 Hourly Build 2019/01/24 07:33 (Windows 10), Board: "Arduino/Genuino Uno"

sketch_feb17a:16:1: error: 'CRGB' does not name a type

CRGB leds[NUM_LEDS];

^

sketch_feb17a:90:22: error: 'CRGB' does not name a type

void lightItUp(const CRGB& pColor, const CRGB& sColor, uint16_t travel) {

                  ^

sketch_feb17a:90:42: error: 'CRGB' does not name a type

void lightItUp(const CRGB& pColor, const CRGB& sColor, uint16_t travel) {

                                      ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void setup()':

sketch_feb17a:43:3: error: 'FastLED' was not declared in this scope

FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);

^

sketch_feb17a:43:19: error: 'NEOPIXEL' was not declared in this scope

FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);

               ^

sketch_feb17a:43:39: error: 'leds' was not declared in this scope

FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);

                                   ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void loop()':

sketch_feb17a:86:3: error: 'FastLED' was not declared in this scope

FastLED.show();

^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: At global scope:

sketch_feb17a:90:22: error: 'CRGB' does not name a type

void lightItUp(const CRGB& pColor, const CRGB& sColor, uint16_t travel) {

                  ^

sketch_feb17a:90:42: error: 'CRGB' does not name a type

void lightItUp(const CRGB& pColor, const CRGB& sColor, uint16_t travel) {

                                      ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void lightItUp(const int&, const int&, uint16_t)':

sketch_feb17a:96:7: error: 'leds' was not declared in this scope

   leds[i] = pColor;

   ^

sketch_feb17a:98:7: error: 'leds' was not declared in this scope

   leds[i] = sColor;

   ^

sketch_feb17a:102:3: error: 'FastLED' was not declared in this scope

FastLED.show();

^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void setGreenStandby()':

sketch_feb17a:119:21: error: 'leds' was not declared in this scope

return fill_solid(leds, NUM_LEDS, CRGB::Green);

                 ^

sketch_feb17a:119:37: error: 'CRGB' has not been declared

return fill_solid(leds, NUM_LEDS, CRGB::Green);

                                 ^

sketch_feb17a:119:48: error: 'fill_solid' was not declared in this scope

return fill_solid(leds, NUM_LEDS, CRGB::Green);

                                            ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino:119:48: warning: return-statement with a value, in function returning 'void' [-fpermissive]

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void setRed()':

sketch_feb17a:123:21: error: 'leds' was not declared in this scope

return fill_solid(leds, NUM_LEDS, CRGB::Red);

                 ^

sketch_feb17a:123:37: error: 'CRGB' has not been declared

return fill_solid(leds, NUM_LEDS, CRGB::Red);

                                 ^

sketch_feb17a:123:46: error: 'fill_solid' was not declared in this scope

return fill_solid(leds, NUM_LEDS, CRGB::Red);

                                          ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino:123:46: warning: return-statement with a value, in function returning 'void' [-fpermissive]

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void setGreen(long int)':

sketch_feb17a:128:20: error: 'CRGB' has not been declared

return lightItUp(CRGB::Yellow, CRGB::Green, travel);

                ^

sketch_feb17a:128:34: error: 'CRGB' has not been declared

return lightItUp(CRGB::Yellow, CRGB::Green, travel);

                              ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino:128:53: warning: return-statement with a value, in function returning 'void' [-fpermissive]

return lightItUp(CRGB::Yellow, CRGB::Green, travel);

                                                 ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino: In function 'void setYellow(long int)':

sketch_feb17a:133:20: error: 'CRGB' has not been declared

return lightItUp(CRGB::Red, CRGB::Yellow, travel);

                ^

sketch_feb17a:133:31: error: 'CRGB' has not been declared

return lightItUp(CRGB::Red, CRGB::Yellow, travel);

                           ^

C:\Users\twefr\Documents\Arduino\sketch_feb17a\sketch_feb17a.ino:133:51: warning: return-statement with a value, in function returning 'void' [-fpermissive]

return lightItUp(CRGB::Red, CRGB::Yellow, travel);

                                               ^

exit status 1 'CRGB' does not name a type

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Can you help me with this?