PWM (pulse-width modulation)
PWM switches a pin on and off very fast; the share of time it's on sets the average power, to dim LEDs or slow motors.
On Arduino, analogWrite(pin, 128) gives about 50% (duty cycle). Only the pins marked ~ can do it.
Lessons
Words to know
Everything on this subject: Microcontroller Basics: Pins, PWM and Signals, Simplified

