Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do I have to choose?
You can't start now... Were only at post 86...We won't mention banging your head against the wall and/or throwing things
If you do that, what's the point of the thread... Reverse engineer the modlue.... But then use it!!led matrix.bas module??
You have a hardware problem. Row 3 must be connected to the row 1 input instead of row 3 input. Period.
Been there, done that, no intention of getting the T-shirt.Just a point of order. 74 replies to get to this point. It's quite possible that MrDEB actually had working code at some point prior to this, as he mentioned on a couple occasions that he was getting the wrong output or duplicate output for some key presses. Everyone chalked this up to bad code (which it still may have been), but if MrDEB had noticed or mentioned that a whole column (row?) was giving the wrong results, spotting the hardware problem might have (relatively) quickly resolved this.
Dave Jones from the EEVBlog says you are lucky when a board you built doesn't work as planned. You get to hone your troubleshooting skills and learn how things work. But in order to troubleshoot something, you need a logical approach. Probably the first step when noticing that some keys yielded screwy results should have been to map out the key response. Pressing key 1 gives a 1. Pressing key 2 gives a 2. Pressing key 5 gives a 5. Pressing key 9 gives a 1. Do this for all twelve keys, and it should have been noticed that 2 rows gave duplicate results.
But not taking time to map 12 buttons, the conclusion jumped to was a software problem, which it could have been in addition to a hardware problem but it's pretty clear it was never going to work with 2 columns tied together.
A logical approach (and more than a veneer of understanding) is necessary when writing code. Even more so when it comes to troubleshooting code/hardware interaction. Just pointing out the obvious I know.
Go back to post #79.If I had the ledmatrix.bas module to paste into my editor I would have done that already
oups! I missed post#79. It looked like my beginning code so I failed to look closer.
Easy mistake since I started writing similar.
Question==would binary work? to put it into a const array?
first 4 bits are colums and next three are rows?
I attempted but didn't get anywhere.
portc=%00000010
code works but needs a little editing to add more leds to toggle
Since we're now pushing post #100 and I already handed you a working module written in a form you should be able to understand, my answer would be no, there's no way to use binary or const arrays.Question==would binary work? to put it into a const array?
More than 12 LEDs have magically appeared all of a sudden?...a little editing to add more leds to toggle
....there's no way [for MrDEB] to use binary or const arrays.
The code I wrote is the only possible solution [for MrDEB]. There's no other way to do it [for MrDEB]. Period......