From fc22dc96f178f261d03adbcdc5e729738b281aed Mon Sep 17 00:00:00 2001 From: 61616 <33187059+61616@users.noreply.github.com> Date: Wed, 16 Oct 2019 16:14:30 -0400 Subject: [PATCH] updated to 1.0.1 --- patternLockFinalBuild/patternLockFinalBuild.ino | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/patternLockFinalBuild/patternLockFinalBuild.ino b/patternLockFinalBuild/patternLockFinalBuild.ino index 8491178..2cfa4e8 100644 --- a/patternLockFinalBuild/patternLockFinalBuild.ino +++ b/patternLockFinalBuild/patternLockFinalBuild.ino @@ -17,7 +17,9 @@ * for testing without a servo hooked up. If any password check fails debug data will be printed * by Nayan Sawyer * Final implementation of a project started years ago - * version 1.0.0 Oct 16 2019 + * version 1.0.1 Oct 16 2019 + * changes 1.0.1: + * added *void notify* */ #include @@ -159,6 +161,17 @@ void open() { myServo.detach(); } +// Run servo so you know when the attempt has failed +void notify(){ + myServo.attach(servoPin); + delay(200); + myServo.write(110); + delay(500); + myServo.write(97); + delay(200); + myServo.detach(); +} + /* * PROGRAM CONTINUES */ @@ -178,6 +191,7 @@ void loop(){ if(checkCombo(j)){ break; } + notify(); } } }