teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

記載箇所にミス

2019/04/11 03:04

投稿

wakka0014
wakka0014

スコア15

title CHANGED
File without changes
body CHANGED
@@ -50,14 +50,11 @@
50
50
  def __init__(self, *args, **kwargs):
51
51
  super(RunText, self).__init__(*args, **kwargs)
52
52
  self.parser.add_argument("-t", "--text", help="The text to scroll on the RGB LED panel", default="21:52")
53
+
53
-
54
+ # 音を再生
55
+ # ★★★
54
56
  sound_class = SoundClass()
55
- sound_class.sound_play()
57
+ sound_class.sound_play()
56
-
57
- # 音を再生
58
- # ★★★
59
- def sound_play():
60
- subprocess.call("aplay /home/pi/Desktop/rpi-rgb-led-matrix/bindings/python/samples/sound.wav", shell=True)
61
58
 
62
59
  def run(self):
63
60
  # LEDパネルに描画するcanvasを作成