Arduino Polska Forum
Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel - Wersja do druku

+- Arduino Polska Forum (https://forum.arduinopolska.pl)
+-- Dział: Korzystanie z Arduino (https://forum.arduinopolska.pl/dzial-korzystanie-z-arduino)
+--- Dział: Piaskownica (https://forum.arduinopolska.pl/dzial-piaskownica)
+--- Wątek: Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel (/watek-arduino-uno-probrem-z-wgraniem-przyk%C5%82ad%C3%B3w-z-biblioteki-neopixel)



Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel - mizu - 13-09-2016

Witam serdecznie, wszystkie inne napisane własnoręcznie programy mogę na arduino uno(oryginalne) wgrać a z biblioteki arduino neopixel nic nie zmienianej wyskakuje mi komunikat o błędzie 

Kod:
// NeoPixel Ring simple sketch (c) 2013 Shae Erisson
// released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
 #include <avr/power.h>
#endif

// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1
#define PIN            6

// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS      16

// When we setup the NeoPixel library, we tell it how many pixels, and which pin to use to send signals.
// Note that for older NeoPixel strips you might need to change the third parameter--see the strandtest
// example for more information on possible values.
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

int delayval = 500; // delay for half a second

void setup() {
 // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
#if defined (__AVR_ATtiny85__)
 if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
 // End of trinket special code

 pixels.begin(); // This initializes the NeoPixel library.
}

void loop() {

 // For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.

 for(int i=0;i<NUMPIXELS;i++){

   // pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
   pixels.setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color.

   pixels.show(); // This sends the updated pixel color to the hardware.

   delay(delayval); // Delay for a period of time (in milliseconds).

 }
}


- przykładowy program z biblioteki 


C:\Users\Daniel\Documents\Arduino\Adafruit_NeoPixel-master\examples\simple\simple.ino:4:31: fatal error: Adafruit_NeoPixel.h: No such file or directory

 #include <Adafruit_NeoPixel.h>

                               ^

compilation terminated.

exit status 1
Błąd kompilacji dla płytki Arduino/Genuino Uno.

błąd który wyskakuje, jest ktoś w stanie pomóc ?


RE: Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel - adix - 13-09-2016

U mnie si kompiluje po prawnie.


RE: Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel - mizu - 13-09-2016

mhm, to moze mikroprocesor coś szwankuje


RE: Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel - CEO - 14-09-2016

Biblioteka wgrana poprawnie? Spróbuj również na innej wersji Arduino IDE.


RE: Arduino uno probrem z wgraniem przykładów z biblioteki Neopixel - adix - 14-09-2016

Jakie arduino ide używasz.