Different output between Arduino Mini 05 and Arduino Mega 2560

Insert Quote
ahhhhhh, i have done the most newbie mistake in the world smiley
i've assumed the pin7 was a pwm pin. Accordingly to the Mini description, the pwm pins are: 3, 5, 6, 9, 10, 11

You learned a lesson here that first all make sure hardware connections and addressal in code are all correct and then comes the fuses etc lower level setup stuff for your uC and then comes your logic in your code.