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!
NOOBie Q: Gemma Multi-Patterns on a switch?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- xian5v
- Posts: 16
- Joined: Fri Feb 07, 2014 2:01 pm
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
just need to know if its possible?
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
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.
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.
-
- Posts: 7
- Joined: Fri Sep 20, 2013 12:53 am
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
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.
- xian5v
- Posts: 16
- Joined: Fri Feb 07, 2014 2:01 pm
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
thank you!! I will am waiting for my adafruit order to arrive:) will post project soon.
- michaelmeissner
- Posts: 1821
- Joined: Wed Aug 29, 2012 12:40 am
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
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).
- xian5v
- Posts: 16
- Joined: Fri Feb 07, 2014 2:01 pm
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
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
any idea why this pixel wont shut off?
thanks
- jcgoodman
- Posts: 107
- Joined: Thu Jan 23, 2014 6:03 pm
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
Hard to tell without seeing the code. Could you post here the smallest piece of code which recreates the problem?Is this a bad ring or bad code.
- xian5v
- Posts: 16
- Joined: Fri Feb 07, 2014 2:01 pm
Re: NOOBie Q: Gemma Multi-Patterns on a switch?
FIxed!
the grnd pin was shorted, Thank you guys!!
the grnd pin was shorted, Thank you guys!!
Please be positive and constructive with your questions and comments.