Skip to content

Instantly share code, notes, and snippets.

@boochow
Created November 10, 2019 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boochow/6e5a72162c8f117cd1b1a7fe47628ee1 to your computer and use it in GitHub Desktop.
Save boochow/6e5a72162c8f117cd1b1a7fe47628ee1 to your computer and use it in GitHub Desktop.
import video,time
from Maix import GPIO
fm.register(34, fm.fpioa.I2S0_OUT_D1)
fm.register(35, fm.fpioa.I2S0_SCLK)
fm.register(33, fm.fpioa.I2S0_WS)
fm.register(8, fm.fpioa.GPIO0)
wifi_en=GPIO(GPIO.GPIO0,GPIO.OUT)
wifi_en.value(0)
v = video.open("/sd/badapple_320_240_15fps.avi")
print(v)
v.volume(10)
while True:
if v.play() == 0:
print("play end")
break
v.__del__()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment