Arduino sketch for focus stacking with Nikon DSLRs