So far I have it talking in the DEBUG TERMINAL:
' {$STAMP BS2}
' {$PBASIC 2.5}
' ----[noparse][[/noparse]STRs]
ReadName VAR Byte(10) ' Allocate 10 bytes for 'string'
ReadCommand VAR Byte(10)
I9600 CON 84 + 16384 ' 9600 baud is 84, Inverted is 16384
Main:
DEBUG "Hi, I'm BOE. What's your name?", CR
DEBUGIN STR ReadName\10\13 ' Read 10 bytes, or to CR
DEBUG "Hello ", STR ReadName
PAUSE 500
DEBUG CR, "What would you like me to do?", STR ReadCommand
DEBUGIN STR ReadCommand\10\13
DEBUG "Ok. I'll do: ", STR ReadCommand
I would like to know how the BOE can take a command and then do what the command says.
Like:
"What would you like me to do?" Turn 90 Degrees to the left
Comments
' {$STAMP BS2}
' {$PBASIC 2.5}
' ----[noparse][[/noparse]STRs]
ReadName VAR Byte(10) ' Allocate 10 bytes for 'string'
ReadCommand VAR Byte(10)
I9600 CON 84 + 16384 ' 9600 baud is 84, Inverted is 16384
Main:
DEBUG "Hi, I'm BOE. What's your name?", CR
DEBUGIN STR ReadName\10\13 ' Read 10 bytes, or to CR
DEBUG "Hello ", STR ReadName
PAUSE 500
DEBUG CR, "What would you like me to do?", STR ReadCommand
DEBUGIN STR ReadCommand\10\13
DEBUG "Ok. I'll do: ", STR ReadCommand
I would like to know how the BOE can take a command and then do what the command says.
Like:
"What would you like me to do?" Turn 90 Degrees to the left
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
eeeeeeeeeeeeeeeeeeeeeee
thats talking.
sort of.
[noparse][[/noparse]:P]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
**************
daniel woolston
Teksystems Inc.
www.danwoolston.com
**************
Ryan