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 | |
MUSIC_DIR="/media/Volume/Musica personale/" | |
find "$MUSIC_DIR" -iname "*$1*.mp3" -o -iname "*$1*.wma" -type f | while read line; do | |
good=1; | |
for arg in $@ ; do | |
if [ $good -eq 1 ]; then | |
echo $line | grep -i -q "$arg" | |
if [ $? -eq 1 ] ; then |
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
import time | |
from Adafruit_LED_Backpack import SevenSegment | |
# bit offset and corresponding led | |
# 0 | |
# 5 1 | |
# 6 | |
# 4 2 | |
# 3 |