SERIN commnad please help
![Luis_P](https://forums.parallax.com/uploads/userpics/943MO9HECKJ3/nO7HZN7DAZ7N6.jpeg)
I have a nice Mp3 player that suppost to return a code after sending command from Bs2, but I don't know how to read that code!
to play a file (mp3) I use:
SEROUT RFID_TX, Baud, [$7E, 7, $A0, $30, $30, $30, $30, $31, $7E]
I want to get the return code to make sure the file is playing. the manual on page 8 is telling me TX pin will return a code after sending a comand.
I'm thinking something like:
SERIN RFID_RX
But I don't know how! Please helpWT9501M03.pdf
to play a file (mp3) I use:
SEROUT RFID_TX, Baud, [$7E, 7, $A0, $30, $30, $30, $30, $31, $7E]
I want to get the return code to make sure the file is playing. the manual on page 8 is telling me TX pin will return a code after sending a comand.
I'm thinking something like:
SERIN RFID_RX
But I don't know how! Please helpWT9501M03.pdf
pdf
![](/plugins/FileUpload/images/file.png)
660K
Comments
Look up about making an array in PBASIC Help.
There are probably a few return codes sent back and my example only captures the first after the $7e $7e ($7e, or 254, is the ASCII code for the tilde ~)