To reset Duet, press and hold the encoder until all of the LEDs on the unit are lit. All settings will return to their factory default.

Here’s a video demonstrating this: