MP3 MODULE PSEUDOCODE
MP3 Module
initMp3Module takes nothings, returns true
set MP3_PLAY pin as write
set MP3_BUSY pin as read
set MP3_PLAY pin low
return true
End of initMp3Module
playMusic takes nothing, returns nothing
pulse MP3_PLAY pin
End of playMusic
stopMusic takes nothing, returns nothing
If MP3_BUSY is HIGH
pulse MP3_PLAY pin
End if
End of stopMusic
initMp3Module takes nothings, returns true
set MP3_PLAY pin as write
set MP3_BUSY pin as read
set MP3_PLAY pin low
return true
End of initMp3Module
playMusic takes nothing, returns nothing
pulse MP3_PLAY pin
End of playMusic
stopMusic takes nothing, returns nothing
If MP3_BUSY is HIGH
pulse MP3_PLAY pin
End if
End of stopMusic