corrected setup function - disabling funcDigOut is done by setting it to 31 (not to 0 as it was before)