Skip to content

Commit 13f6914

Browse files
committed
Reset route fixed
1 parent 22746ad commit 13f6914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
from coderbot import CoderBot
1414
from program import ProgramEngine, Program
1515
from config import Config
16+
import pigpio
17+
18+
BUTTON_PIN = 16
1619

1720
bot_config = Config.get()
1821
bot = CoderBot.get_instance(
@@ -215,6 +218,7 @@ def resetDefaultPrograms():
215218
## Reset
216219
def reset():
217220
pi = pigpio.pi('localhost')
221+
pi.write(BUTTON_PIN, 1)
218222
pi.write(BUTTON_PIN, 0)
219223
pi.write(BUTTON_PIN, 1)
220224

0 commit comments

Comments
 (0)