NOOBie Q: Gemma Multi-Patterns on a switch?

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
xian5v
 
Posts: 16
Joined: Fri Feb 07, 2014 2:01 pm

NOOBie Q: Gemma Multi-Patterns on a switch?

Post by xian5v »

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!

User avatar
xian5v
 
Posts: 16
Joined: Fri Feb 07, 2014 2:01 pm

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

Post by xian5v »

just need to know if its possible?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

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

Post by adafruit_support_mike »

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.

sdsuhien
 
Posts: 7
Joined: Fri Sep 20, 2013 12:53 am

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

Post by sdsuhien »

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.

User avatar
xian5v
 
Posts: 16
Joined: Fri Feb 07, 2014 2:01 pm

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

Post by xian5v »

thank you!! I will am waiting for my adafruit order to arrive:) will post project soon.

User avatar
michaelmeissner
 
Posts: 1821
Joined: Wed Aug 29, 2012 12:40 am

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

Post by michaelmeissner »

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
xian5v
 
Posts: 16
Joined: Fri Feb 07, 2014 2:01 pm

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

Post by xian5v »

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

User avatar
jcgoodman
 
Posts: 107
Joined: Thu Jan 23, 2014 6:03 pm

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

Post by jcgoodman »

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?

User avatar
xian5v
 
Posts: 16
Joined: Fri Feb 07, 2014 2:01 pm

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

Post by xian5v »

FIxed!
the grnd pin was shorted, Thank you guys!!

Locked
Please be positive and constructive with your questions and comments.

Return to “Wearables”