hello, i need to change the Code for The Microcontroller. This code will work with both the Basic Stamp, and the PicBasic Compiler, and i need to change to picaxe programming editor, because i want control pc with visual basic pogramm to picaxe18x, i want to move servomototors, the code is :
symbol pos = b2 ' Position storage
symbol servo = b3 ' Corresponds to pins 1-7 for servo number
symbol count = b4 ' Count storage
start:
serin 0,N2400,servo,pos ' Input data on pin 0, 2400 baud
move:
for count = 0 to 40
pulsout servo,pos ' Send servo# ?, to position# ?
pause 20 ' Timing delay
next count ' Do it again until count = 40
goto start ' Return and wait for more input
thanks, thanks, thanks
symbol pos = b2 ' Position storage
symbol servo = b3 ' Corresponds to pins 1-7 for servo number
symbol count = b4 ' Count storage
start:
serin 0,N2400,servo,pos ' Input data on pin 0, 2400 baud
move:
for count = 0 to 40
pulsout servo,pos ' Send servo# ?, to position# ?
pause 20 ' Timing delay
next count ' Do it again until count = 40
goto start ' Return and wait for more input
thanks, thanks, thanks