Compiling Errp

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#define PIN 6
#define NUMPIXELS 16

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

I’m trying to write a program for my Neo Pixels and I copied some code from the examples and removed the comment but, it won’t compile. I didn’t rename the file or move it from the sketchbook.
Please help.

Arduino: 1.8.5 (Mac OS X), Board: “Arduino/Genuino Uno”

I think my error comes from this:
In function main': undefined reference to setup’
undefined reference to `loop’

Where are your setup() and loop() functions ?


Can you please tell us your electronics, programming, Arduino, hardware experience?

Thanks… Tom… :slight_smile: