Saving Battery Power

Hello all,

Is there a way i can switch off the PWM module after 10 seconds of using it?

i am hoping this would help me conserve power, i also heard activating pull up's for all pins that arent going to be used saves power as well, how do i do this.

Thanks.

Is there a way i can switch off the PWM module after 10 seconds of using it?

for (int i = 0; i < N_PWM_PINS; i++)
{
  analogWrite (pwmPin [i], 0);
}

i also heard activating pull up's for all pins that arent going to be used saves power as well

pinMode (inputPinx, INPUT_PULLUP);

How about sleep mode? You can save a lot of power by sleeping as much as possible.