Hi Rob
I have been very slow getting into using this library but am making progress now. I have been able to select files from folders and play them quite happily but now want to be able to use random files with random delays between them. To do that I could monitor the busy pin but using the serial output from the player seemed more sensible. I have a statement in my code
if dfplayer_sw3_is_stopped() then
that I thought would do the job but I get an error from the compiler
[Error] (dfplayer_sw3.jal) [Line 758] _dfplayer_sw3_query declared but not defined (The sw3 bit is that I have four DFPlayers 0-3 that give me thunder, rain, train and city sounds so I needed four versions of the serial software)
Line 758 is the 6th line in the function definition
function dfplayer_sw3_is_stopped() return bit is
var word status
var bit ok
if _dfplayer_sw3_query(_DFPLAYER_sw3_GET_STATUS, 0, status) then
ok = (status == 0x0000)
else
ok = FALSE
end if
return ok
end function
I have downloaded the current DFPlayer.jal to check but I don't see a
_dfplayer_queryfunction in that either.
I've looked at the library but I'm stumped as to what is needed here.
Thanks
Fraser