Soinua jotzen du
This commit is contained in:
21
code.py
Normal file
21
code.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import board
|
||||
import busio
|
||||
|
||||
from lib.audioplayer import AudioPlayer
|
||||
|
||||
print("Hello, world!")
|
||||
|
||||
uart = busio.UART(
|
||||
tx=board.GP0,
|
||||
rx=board.GP1,
|
||||
baudrate=9600
|
||||
)
|
||||
|
||||
player = AudioPlayer(uart)
|
||||
|
||||
print("Volumen:", player.get_volume())
|
||||
|
||||
player.set_volume(10)
|
||||
|
||||
player.play_index(1)
|
||||
|
||||
Reference in New Issue
Block a user