Code: Select allimport time
from huskylib import HuskyLensLibrary
import vlc
hl = HuskyLensLibrary("SERIAL", "/dev/ttyUSB0", 3000000)
while True:
result = hl.requestAll()
for i in result:
b_learned = getattr(i,"learned")
b_id = getattr(i,"ID")
if b_learned == True:
media = vlc.MediaPlayer(str(b_id)+".mp3")
media.play()
time.sleep(5)
break
I want to express my disappointment for DFRobot technical support. I first contacted them on March 15, about the problem with the python library and Raspberry. We exchanged a few email messages and they reassured me that they are going to fix it. The last email I had from them was on March 31. Since then, they don't even bother to reply to my messages.