Music related troubleshooting - Kyuchumimo/Micro-Joy-Home-Video-Computer GitHub Wiki
- OSError: [Errno 5] EIO
- OSError: [Errno 110] ETIMEDOUT
These errors are related to I2C communication. These errors occur due to a bad connection or the LPC8xx audio chip is not present. The LPC8xx chip when programmed to use I2C connection needs pull-up resistors and acknowledgment to establish communication.
Check connections and re-power the system.
- Exception: End of song reached
This error occurs with VGM files that do not have a loop offset.
When composing music, even if it is to be played only once, the loop must be present, otherwise an _end_of_song condition will occur and this exception will pop up in music.tick which could terminate the program execution.
You will not be able to play music in the future, unless you initialize the music object again or call music._end_of_song = False.
When the music is to be played only once, you can add a new empty pattern and use the 0Bxx effect at row 00 any column to make the pattern loop itself.