See also
https://github.com/ShrimpingIt/micropyt ... /README.md if you are trying to drive it from an ESP8266 (with a TX-only UART).
The ScanPlayer uses a hack to monitor the 'playing' pin to scan for consecutive numerically named files and folders by trying to play them, so that you can e.g. figure out how many actual tracks are in a folder even without an RX serial pin.