Dear Arduino heroes,
I'm new with C++ but a little familliar with C. So i've been struggling today but i've made my first library! XD
However there is a problem and i have no idea why it does not work, the problem is the following. I've made a function so when u press the button it toggles and not presses it over and over and over again. .. for example "buttonUp" or "buttonDown".
the function worked great before i used it in the library, but now when i copied it in the library and put in the "nes" class the buttonpress works but the toggle bit of the function does not work anymore???
i'm sorry for the bad english, i will post my code below. If anyone could help me out I would be very gratefull, also an explenation would be great because i can't wrap my head around it why it doesn't work. I'm still a beginner programmer.
---- edit: i removed the code cause it wasn't relevant anymore.