You can start with this Guide: how to flash ATtiny13a based drivers (NANJG, QLITE, etc.) with custom firmware.