AVR Rapid Fire Mod... I hit a wall and need some help
Not familiar with BASCOM but have done plenty of C coding on Mega328s. I don't see anything that turns on the internal pullup resistor. PB.2 appears to be set as an input, but nothing indicates a pullup. Usually that would involve DDRB but that could be hidden in BASCOM code. Try just adding a 3.3K pullup from the input to Vcc, and connect the switch between the input and ground.

Jim Wagner
Oregon Research Electronics