This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
// Pin definitions | |
const int shiftRegisterLatch = 19; | |
const int shiftRegisterClock = 17; | |
const int shiftRegisterEnable = 14; | |
const int shiftRegisterData = 12; | |
// Bit positions in the 74HC595 shift register output | |
#define MOTOR1_A 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# If you run mycroft in docker you may get Errno 111: Connection Refused | |
# On my container, a simple ./mycroft-stop and ./mycroft-start all fixes Error 111 | |
# This script checks your audio.log for Error 111 and will restart the mycroft service if it occurs | |
# put the script in your container, then edit /opt/mycroft/startup.sh | |
# Add your background watchdog script after mycroft starts in startup.sh, like: /opt/mycroft/./watchdog.sh & | |
while true | |
do | |
thetime=`date +%s` | |
echo watchdogtest $thetime | tee -a /var/log/mycroft/audio.log |