new to quadravox
Archiver
Posts: 46,084
I am tring to work with quadravox. To help learn it I want to have to
switchs when swith one is presses sound one is played when switch 2
is pressed sound two plays.
Here is some of my sample program can someone please look at it and
tell me if and where I am going wrong.
' I/O def
QV_RST CON 0 ' QV306M4.14
QV_RX CON 1 ' QV306M4.1
QV_TX CON 2 ' QV306M4.2
QV_BUSY VAR In3 ' QV306M4.3
'
[noparse][[/noparse] Constants ]
T2400 CON 396 ' 2400 baud, true
IsBusy CON 0
' ** QV306M4 Command Set **
QV_Direct CON $F0 ' QV modes
QV_Stop CON $F6
QV_Sleep CON $F8
QV_Volume CON $FC
QV_Reset CON $FD ' software reset
QV_Rev CON $FE ' module revision
QV_Type CON $FF ' module type
'
[noparse][[/noparse] Vocabulary ]
_s1 CON 0
_s2 CON 1
'
[noparse][[/noparse] EEPROM Data
Sound1 DATA _s1
Sound2 DATA _s2
I understand how to use the switchs to choose but I do not understand
how to call the sound up.
Please Help
Brian
switchs when swith one is presses sound one is played when switch 2
is pressed sound two plays.
Here is some of my sample program can someone please look at it and
tell me if and where I am going wrong.
' I/O def
QV_RST CON 0 ' QV306M4.14
QV_RX CON 1 ' QV306M4.1
QV_TX CON 2 ' QV306M4.2
QV_BUSY VAR In3 ' QV306M4.3
'
[noparse][[/noparse] Constants ]
T2400 CON 396 ' 2400 baud, true
IsBusy CON 0
' ** QV306M4 Command Set **
QV_Direct CON $F0 ' QV modes
QV_Stop CON $F6
QV_Sleep CON $F8
QV_Volume CON $FC
QV_Reset CON $FD ' software reset
QV_Rev CON $FE ' module revision
QV_Type CON $FF ' module type
'
[noparse][[/noparse] Vocabulary ]
_s1 CON 0
_s2 CON 1
'
[noparse][[/noparse] EEPROM Data
Sound1 DATA _s1
Sound2 DATA _s2
I understand how to use the switchs to choose but I do not understand
how to call the sound up.
Please Help
Brian
Comments
talk with the QV306 -- this is a possible problem. Update the program
to PBASIC 2.5 syntax with the PIN definition to make things easier, and
put your buttons on pins 14 and 15 (since they are not used).
S1 PIN 14
S2 PIN 15
Then later...
Main:
IF (S1 = 1) THEN
phrase = _S1
GOSUB Say_Phrase
ENDIF
IF (S2 = 1) THEN
pharse = _S2
GOSUB Say_Phrase
ENDIF
GOTO Main
I will update the QV306 demo code and have it posted on our web site.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: bknob2 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=j1NsZA8_qP8vUC-VpHGKDKMyA7bz0lnor3Po82bGrfCMFu10InzP8tli0FWIRqttRWWV]bknob@a...[/url
Sent: Wednesday, October 29, 2003 2:01 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] new to quadravox
I am tring to work with quadravox. To help learn it I want to have to
switchs when swith one is presses sound one is played when switch 2
is pressed sound two plays.
Here is some of my sample program can someone please look at it and
tell me if and where I am going wrong.
' I/O def
QV_RST CON 0 ' QV306M4.14
QV_RX CON 1 ' QV306M4.1
QV_TX CON 2 ' QV306M4.2
QV_BUSY VAR In3 ' QV306M4.3
'
[noparse][[/noparse] Constants ]
T2400 CON 396 ' 2400 baud, true
IsBusy CON 0
' ** QV306M4 Command Set **
QV_Direct CON $F0 ' QV modes
QV_Stop CON $F6
QV_Sleep CON $F8
QV_Volume CON $FC
QV_Reset CON $FD ' software reset
QV_Rev CON $FE ' module revision
QV_Type CON $FF ' module type
'
[noparse][[/noparse] Vocabulary ]
_s1 CON 0
_s2 CON 1
'
[noparse][[/noparse] EEPROM Data
Sound1 DATA _s1
Sound2 DATA _s2
I understand how to use the switchs to choose but I do not understand
how to call the sound up.
Please Help
Brian
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....