Kill output when stopped
authorGraham <dev@netlinux.org.uk>
Wed, 6 Sep 2017 20:20:33 +0000 (21:20 +0100)
committerGraham <dev@netlinux.org.uk>
Wed, 6 Sep 2017 20:20:33 +0000 (21:20 +0100)
UnoBLDC.cpp

index 0dfab5d..163d9b3 100644 (file)
@@ -60,6 +60,8 @@ void KeyPress (const char Character)
             break;
         case 'r':
             Run = false;
+            DDRB = (0);         // set the direction
+            PORTB = 0b111;     // set the bits (including the pullups)
             break;
 
         case ' ':