NOOBie Q: Gemma Multi-Patterns on a switch?

by Xian5v on Fri Feb 07, 2014 1:24 pm

Hello:
I am trying to program a gemma and 5 neo-stick. Q: Can i program gemma with multiply patterns and toggle between them with a button? I am building a LED flag pole to help us find our campsite when we are in the sand dunes. It would be nice, if i could switch from mellow flashing to brighter more elaborate patterns with just a button.

thank you!
Xian5v
 
Posts: 8
Joined: Fri Feb 07, 2014 1:01 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by Xian5v on Fri Feb 07, 2014 2:36 pm

just need to know if its possible?
Xian5v
 
Posts: 8
Joined: Fri Feb 07, 2014 1:01 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by adafruit_support_mike on Fri Feb 07, 2014 10:25 pm

Yeah, you should have no problems with that.

The Gemma's memory limits will put a cap on the complexity of the patterns you can do, but there's plenty of room if you use simple patterns or patterns that can be generated mathematically.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 7198
Joined: Thu Feb 11, 2010 1:51 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by sdsuhien on Sat Feb 08, 2014 2:55 pm

Using a Attiny85, which is the same chip as the Gemma, I was able to get 4-5 different Pattern into the code to be used with 1 switch. After that, the code wouldn't compile. So it simple, should really help.
sdsuhien
 
Posts: 7
Joined: Thu Sep 19, 2013 11:53 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by Xian5v on Mon Feb 10, 2014 1:23 pm

thank you!! I will am waiting for my adafruit order to arrive:) will post project soon.
Xian5v
 
Posts: 8
Joined: Fri Feb 07, 2014 1:01 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by michaelmeissner on Mon Feb 10, 2014 2:58 pm

Note, that while the Gemma and the raw ATtiny85 use the same chip, a big portion of the program memory (where code and PROGMEM constants go) is used by the bootloader in the Gemma. The raw ATtiny85 does not have a bootloader, so it has more memory (8k instead of 5.25k). So with a Gemma or Trinket, you might for instance only get 3 patterns instead of 5 (it depends on the actual pattern).
User avatar
michaelmeissner
 
Posts: 350
Joined: Tue Aug 28, 2012 11:40 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by Xian5v on Sat Feb 15, 2014 8:46 am

I have been uploading to my new gemma, I just can't get one pixel to turn off. I have uploaded a few different patterns that seem to work, but one pixel is always on. Is this a bad ring or bad code. I have tried rewired to pin 1 from 0, that did not help.

any idea why this pixel wont shut off?

thanks
Xian5v
 
Posts: 8
Joined: Fri Feb 07, 2014 1:01 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by jcgoodman on Sat Feb 15, 2014 11:40 am

Is this a bad ring or bad code.


Hard to tell without seeing the code. Could you post here the smallest piece of code which recreates the problem?
jcgoodman
 
Posts: 96
Joined: Thu Jan 23, 2014 5:03 pm

Re: NOOBie Q: Gemma Multi-Patterns on a switch?

by Xian5v on Sat Feb 15, 2014 2:26 pm

FIxed!
the grnd pin was shorted, Thank you guys!!
Xian5v
 
Posts: 8
Joined: Fri Feb 07, 2014 1:01 pm