First, a little background...
I came here a while back asking about the feasibility of using an Arduino Leonardo and push buttons to control a PowerPoint for part of my Chemistry project. Well, I've got it all working, and it's wonderful.
My code (only for two buttons right now, will be for fifteen by the end):
//if the button is pressed
//Send the message
It works wonderfully, but when you push a button it sends a slew of whatever number is assigned to that button. Now, that doesn't really affect the PowerPoint, but it would make me happier knowing it was cleaner. So what I'd like to do is just have the program check if the button state has changed, and then send only ONE number. Does that make sense?
I've done some searching but I honestly am pretty new to Arduino so I'm not really sure of what I'm looking for. Any help or nudge in the right direction would be great!