I found many times struggling with memory issues on my arduino projects. So I decided to build my arduino version. The ATmega644p/1284p is less expensive than a leonardo and a micro and better featured. You can customize the core voltage you want and frequency just changing the regulator and the ressonator crystal. It uses the MIghtycore arduino boards for programming bootloader and upload the program.