Urgent - analog pin as digital input with flash

what code and libraries are you using?