🎁📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Please place all UPS 2 Day orders by 11am Monday, December 16 📦❄️📬🎁
0

Individual Neotrellis button and led address 4x4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Individual Neotrellis button and led address 4x4

by diltsu69 on Tue Nov 19, 2019 8:56 am

Hi, been trying to figure this out by myself but I need a hand.

I've read the Seesaw Neotrellis example codes, and all the librarys that Neotrellis uses. I use Arduino IDE.

So what I would like to understand is that is there a specific number or a name for a button, so I could give a command for it. For example I would push a button, it would play a sound and light up a led. And other button would play different sound and would lit up different color led.

Are the button and led commands in the same command, or different?

Would be a big help if someone could show me a direction where to go!

diltsu69
 
Posts: 2
Joined: Wed Nov 13, 2019 12:26 am

Re: Individual Neotrellis button and led address 4x4

by dastels on Tue Nov 19, 2019 11:59 am

The basic seesaw-neotrellis example (on https://learn.adafruit.com/adafruit-neotrellis/arduino-code) should have all the information you need:

- detecting a button press/release (via the callback mechanism)
- setting the color of a pixel

Dave

dastels
 
Posts: 931
Joined: Tue Oct 20, 2015 3:22 pm

Re: Individual Neotrellis button and led address 4x4

by diltsu69 on Wed Nov 20, 2019 4:59 am

Yeah, that's what I thought that all the info is there, good to have someone confirming that to me.

I started to read a book, so the code has opened up a bit more. But yeah, there's still things I don't understand but I think the further I get with the book the more it will open up.

Thank's for your reply Dave

diltsu69
 
Posts: 2
Joined: Wed Nov 13, 2019 12:26 am

Re: Individual Neotrellis button and led address 4x4

by dastels on Wed Nov 20, 2019 10:42 am

Yes, read and try things out. And have fun!

Dave

dastels
 
Posts: 931
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.