svensson
11-24-2009, 04:55 PM
Hello,
I've bought a bs2 stamp with BOE board and SAY IT MODULE.
But when I make one trigger word ( robot ) and 1 group ( with words ON and OFF ), The code ( say it module )·can only see·the trigger word "robot".
It cannot see the "ON" and " OFF" commands????
I want to say : ROBOT-->ON ( to set led on pin 15 )
···················· ROBOT-->OFF ( to set led·off on·pin 15 )
A code snippet:
VR_Action:
· DEBUG "got ", DEC VRCOMMAND
· SELECT VRGROUP
··· CASE GROUP_0
····· SELECT VRCOMMAND
······· CASE G0_ROBOT
········ PAUSE 0 '-- write your code here
····· ENDSELECT
··· CASE GROUP_1
····· SELECT VRCOMMAND
······· CASE G1_ON
········ PAUSE 200 '-- write your code here
········ HIGH 15
······· CASE G1_OFF
········ PAUSE 200 '-- write your code here
········ LOW 15
····· ENDSELECT
· ENDSELECT
· RETURN
'=== VR Routines ===
Thanks,
Sven
I've bought a bs2 stamp with BOE board and SAY IT MODULE.
But when I make one trigger word ( robot ) and 1 group ( with words ON and OFF ), The code ( say it module )·can only see·the trigger word "robot".
It cannot see the "ON" and " OFF" commands????
I want to say : ROBOT-->ON ( to set led on pin 15 )
···················· ROBOT-->OFF ( to set led·off on·pin 15 )
A code snippet:
VR_Action:
· DEBUG "got ", DEC VRCOMMAND
· SELECT VRGROUP
··· CASE GROUP_0
····· SELECT VRCOMMAND
······· CASE G0_ROBOT
········ PAUSE 0 '-- write your code here
····· ENDSELECT
··· CASE GROUP_1
····· SELECT VRCOMMAND
······· CASE G1_ON
········ PAUSE 200 '-- write your code here
········ HIGH 15
······· CASE G1_OFF
········ PAUSE 200 '-- write your code here
········ LOW 15
····· ENDSELECT
· ENDSELECT
· RETURN
'=== VR Routines ===
Thanks,
Sven