Binary not PWM

Hi, Is it possible to get a series of binary values from analogWrite rather than the PWM when producing an analog value? I imagine it would be equivalent to a binary counter that stops when the pulse reaches the required width. Or is it a stupid question? Thanks, Martin :-)

Do you mean shiftOut?

Exactly. Thanks! Martin