Needing some help with code

Ok so trying to get this code working from the adafruit website. Using a Gemma Attiny85 8mhz on arduino 1.8.5. I believe the code is a few years old and just needs a little tweaking. Any help would be great!

this is the project https://learn.adafruit.com/pages/4429/elements/951597/download

Everything is set up fine. I ran a strandtest and the neopixels are working fine.

Says the code exceeds the maximum so I put it in a zip if thats ok?

These are the errors I'm getting

C:\Users\sigar\AppData\Local\Temp\arduino_modified_sketch_407705\sketch_jun15f.ino: In function 'void setRingsToIdleValues()':

sketch_jun15f:159: error: 'setTargetColor' was not declared in this scope

IDLE_PEAK_SAT, IDLE_PEAK_VALUE, IDLE_TROUGH_SAT, IDLE_TROUGH_VALUE);

^

C:\Users\sigar\AppData\Local\Temp\arduino_modified_sketch_407705\sketch_jun15f.ino: In function 'void fire()':

sketch_jun15f:180: error: 'setTargetColor' was not declared in this scope

AIM_SAT, AIM_PEAK_VALUE, AIM_SAT, AIM_TROUGH_VALUE);

^

sketch_jun15f:187: error: 'setTargetColor' was not declared in this scope

FIRE_SAT, FIRE_VALUE, FIRE_SAT, FIRE_VALUE);

^

C:\Users\sigar\AppData\Local\Temp\arduino_modified_sketch_407705\sketch_jun15f.ino: In function 'void loop()':

sketch_jun15f:201: error: 'setTargetColor' was not declared in this scope

IDLE_PEAK_SAT, IDLE_PEAK_VALUE, IDLE_TROUGH_SAT, IDLE_TROUGH_VALUE);

^

Using library Adafruit_NeoPixel at version 1.1.6 in folder: C:\Users\sigar\Documents\Arduino\libraries\Adafruit_NeoPixel
exit status 1
'setTargetColor' was not declared in this scope

unibeam code.zip (6.46 KB)

Hi Scott2719.
The compiler is telling what the problem is. The compiler can't find the definition of the function setTargetColor.
Try the file attached. I add prototypes of some functions that you are using in your code.

Best regards,
LS.

unibeam_code.ino (18.1 KB)

That did it! Your awesome! Thanks so much for the help.

I am slowly learning this stuff. Can you explain briefly what you did?

Scott2719:
That did it! Your awesome! Thanks so much for the help.

I am slowly learning this stuff. Can you explain briefly what you did?

luisilva:
(...)
I add prototypes of some functions that you are using in your code.
(...)

That is I add this lines:

void setTargetColor(uint8_t r, int16_t h, uint8_t sPeak, uint8_t  vPeak, uint8_t sTrough, uint8_t  vTrough);
void setTargetSpeed(uint8_t r, int16_t s);
void startInterp(uint8_t n);

before function setup(). This lines, if you look at it are the first lines of the definition of the functions and are called "prototypes" of the functions. One way to avoid the use of this is to define the functions before the place that are used (before function setup()).