Take a look at post #6 at
http://www.picbasic.co.uk/forum/showthread.php?t=7962
Also, I am not sure about the way you control the Clock line in your code.
Take a look at post #6 at
http://www.picbasic.co.uk/forum/showthread.php?t=7962
Also, I am not sure about the way you control the Clock line in your code.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Yeah, your code seems to indicate that you are waiting for the clock line to do something?
Your device must generate the clock in this case.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Ok, I misunderstood.
I now realized that you are SENDING data TO KB;
Not reading from it.
Sorry about that.
------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
rookie11, I don't think this code will ever work. Where are the ENDIF commands to terminate the IF statements?
Dave Purola,
N8NTA
One line If/Then statements....don't need an ENDIF....
If this=0 then gosub dothis : that=1 : goto something
...valid statement
If this is zero, then gosub dothis, set that to 1, then goto something.
But that colon following the THEN in the code a few posts back looks a bit strange to me...
And I know colons!![]()
skimask , Look before you leap.... Look at where the colon lies........
Dave Purola.
N8NTA
Well, I was talking about the code attached above. He has this line (along with another that's the same way):
If scancode.0 = 1 Then: parity = parity + 1
----------------------^
I don't know how that'll compile, if it will compile good and not cause an error, if it'll work as written, or what will happen. It just doesn't look right to me, that's all...
And I'm always keeping track of where my colon's lie...![]()
Bookmarks