user22878: I am trying to make a RBB Arduino based project and I only need 3 pins. In the future I may use one to two more. I wanted to use an ATtiny85 however my code is 13,270 bytes and it would not fit. So I decided to use an ATtiny84 but it also would not fit, it will fit on an ATmega328p but I do not want to use one because i want to keep the project relatively small and I for sure do not need that many pins. Does anyone know of a chip that has a lot of memory but not many pins, or some other solution. Thank you, any help is appreciated.   

user7508: AFAIK, 8 KiB of flash is the most you can have on an AVR in a DIP
package with less than 28 pins. If you do not mind soldering
surface-mount parts, the 328P is available in TQFP and VQFN packages,
significantly smaller than the DIP version.
Otherwise you could try to optimize your program to fit in 8 KiB.
The Arduino libraries are often inefficient size-wise, and in many
instances you can save quite a lot by rewriting the parts that you need
on top of just avr-libc. Note that
this libc is always linked to your program by the Arduino IDE.

22878: <p>I am trying to make a RBB Arduino based project and I only need 3 pins. In the future I may use one to two more. I wanted to use an ATtiny85 however my code is 13,270 bytes and it would not fit. So I decided to use an ATtiny84 but it also would not fit, it will fit on an ATmega328p but I do not want to use one because i want to keep the project relatively small and I for sure do not need that many pins. Does anyone know of a chip that has a lot of memory but not many pins, or some other solution. Thank you, any help is appreciated.   </p>
 7508: <p>AFAIK, 8 KiB of flash is the most you can have on an AVR in a DIP
package with less than 28&nbsp;pins. If you do not mind soldering
surface-mount parts, the 328P is available in TQFP and VQFN packages,
significantly smaller than the DIP version.</p>

<p>Otherwise you could try to optimize your program to fit in 8&nbsp;KiB.
The Arduino libraries are often inefficient size-wise, and in many
instances you can save quite a lot by rewriting the parts that you need
on top of just <a href="http://www.nongnu.org/avr-libc/" rel="nofollow">avr-libc</a>. Note that
this libc is always linked to your program by the Arduino IDE.</p>
