DS to BS2 project
Kenny Levinsen
Posts: 19
Well, i know how to make the hardware, but i need a quick way to perform the task that maches the pulse from the DS...
i dont want to make a long IF loop...
something like:
but that wouldnt work...
i
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The school nerd
i dont want to make a long IF loop...
something like:
pulsin 0, 0, pls goto (the pulse)
but that wouldnt work...
i
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The school nerd
Comments
And the loop might look like:
DS_Pin CON 0
DS_Pulse VAR WORD
MAIN:
PULSIN DS_Pin, 0, DS_Pulse
IF DS_Pulse > 500 THEN GOSUB Saw_Pulse ' I just picked 500 here...
GOTO MAIN
Saw_Pulse:
' ... Whatever
RETURN
by pulse i mean the control pulse sent by the Nintendo DS to the BS2 (dont know the length yet.... gonna make that later)
IDEA: Can i somehow check if the pulse matches something in an array?
like this (mockup command):
[noparse][[/noparse]code]
DO
DO WHILE (IN0 = 0)
something...
LOOP
pulsin 0, 0, start
pulsin 0, 0, pls
CheckArray pls, plsreg
LOOP
450:
something for that pulse
return
500:
something else...
return
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The school nerd
Post Edited (Kenny Levinsen) : 8/4/2006 11:18:15 AM GMT
i need to make it wait for the text "start" and then read to a var until it gets the text "stop".
something like
?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The school nerd