Right now, I have a project using an Arduino Uno to drive an RGB LED strip. The Uno is controlled using IR receiver from my IR remote control. So, far it runs well and has no significant problem. However, I've decided to make my project to be more permanent by using ATTINY85 that will be put into my custom PCB.
The problem is that the current Arduino sketch is too big to be flashed into ATTINY85. The micro has only 8KB of Flash memory and 512 bytes of SRAM, whereas my program uses 8000 bytes and 530 bytes of global variables. I'm looking for some tips on how to reduce the memory requirement of my sketch so it can fit into the ATTINY. Any help is appreciated.
The codes are attached.