Hi, i currently have a program that allows a users to cycle through a character selection that is displayed on a 8x8 LED display, the user can then selected each character and it is then sent to a computer, the code also talks on the start up and also when you cycle through each character but it keeps repeating the same character and im going to go insane with the letter A!, i cant find a way of solving my problem without stopping the cycle through.
the code is attached, i think im pushing what a uno can do.
I'd start with putting the spX declarations/initializations in a header file, to keep from cluttering up the sketch.
Then, I'd add some comments to the code, so we have some idea what it is doing (or what you think it is doing).
Finally, I'd add a better description of what the problem is. "im going to go insane with the letter A!" only suggests that you are heading around the bend. It does NOT tell us what the problem is.
allows a users to cycle through a character selection that is displayed on a 8x8 LED display
The part of the code that does that is not at all clear.
the user can then selected each character and it is then sent to a computer
The part of the code that does that is not at all clear.
the code also talks on the start up
The part of the code that does that is not at all clear.
and also when you cycle through each character but it keeps repeating the same character
Hi, I have annotated the code. When I said cycle I meant you can scroll left and right on a track ball, this uses switch cases for the x position. The problem that I have is that the code keeps repeating the character for each case.
What is the mouse device you have connected? I don't know of any mouse device that gives separate pulses for left and right. And why measure the length of each pulse?!?