Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

Goggles Help please!
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Goggles Help please!

by woinkeyman on Tue Aug 05, 2014 12:39 pm

Hi! Thanks for the Goggles example library. I'd like to get my goggles to blink, but only use a single colour instead of rainbow/ecto. I'd like it to be gold as well - how do i modify the goggles sketch to display a single colour that blinks but doesn't look around?

Thanks!

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Re: Goggles Help please!

by woinkeyman on Tue Aug 05, 2014 1:07 pm

Also, how do you change the frequency of the blinks so that it blinks far less often? thanks! =)

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Re: Goggles Help please!

by franklin97355 on Tue Aug 05, 2014 1:10 pm

There is this Guide that will get you started. Then you read and learn from the example code and try things as you learn.

franklin97355
 
Posts: 22603
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Goggles Help please!

by woinkeyman on Tue Aug 05, 2014 1:32 pm

Thanks Franklin. I managed to figure out the Colourwipe code to work. However, I can't reverse engineer the Goggles code - I would really appreciate your help here. So far I've managed to lock the colour to Green without the swirling effect - is there any way to shift it to yellow?

Here's what I have so far.


#elif EFFECT == ECTO

// A steampunk aesthetic might fare better with this more subdued effect.
// Etherial green glow with just a little animation for visual spice.

a = (hue >> 4) & 15;
c = hue & 15;
for(i=0; i<16; i++) {
b = (a + 1) & 15;
iColor[i][1] = 230; // Predominantly green

a = b;
}
hue -= 1;

#endif

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Re: Goggles Help please!

by woinkeyman on Tue Aug 05, 2014 1:34 pm

Also, I've read the guide about four times - the learning curve is very steep however.

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Re: Goggles Help please!

by franklin97355 on Tue Aug 05, 2014 7:37 pm

Try looking at strandtest example for setPixelColor as used in colorWipe. Could you show how you have things connected and how many pixels you are controlling.?

franklin97355
 
Posts: 22603
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Goggles Help please!

by woinkeyman on Thu Aug 07, 2014 5:53 am

Yup I'm basically trying to splice bits of both the strandtest and goggles examples together. Main problem is that strandtest declares a strip, while goggles uses pixels?

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


Anyway I'm creating a mask for a school convocation ceremony, so I'm using two 16-led neopixel rings

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Re: Goggles Help please!

by woinkeyman on Thu Aug 07, 2014 5:57 am

image.jpg
image.jpg (107.39 KiB) Viewed 343 times
And here's a picture of what I have so far - I'm basically trying to make him blink :)
Attachments
image.jpg
image.jpg (121.06 KiB) Viewed 343 times

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Re: Goggles Help please!

by adafruit_support_bill on Thu Aug 07, 2014 6:07 am

Main problem is that strandtest declares a strip, while goggles uses pixels?

That is just a name. It doesn't matter which one you use - as long as you are consistent.

If you want to 'borrow' some strandtest code for your goggles, just change "strand" to "pixels" in the code.

adafruit_support_bill
 
Posts: 83823
Joined: Sat Feb 07, 2009 10:11 am

Re: Goggles Help please!

by woinkeyman on Thu Aug 07, 2014 6:38 am

Ah I see! Thanks!

woinkeyman
 
Posts: 9
Joined: Tue Jul 22, 2014 12:10 am

Please be positive and constructive with your questions and comments.