本帖最后由 empty 于 2021-3-20 10:47 编辑
硬件:Maixdock ,sipeed转接板,导航7寸显示屏(7寸 40针 800*480分辨率)
问题:连接后7寸显示屏不能正常运行,成暗白屏状态
程序:
- from Maix import GPIO, I2S
- from fpioa_manager import fm
- import lcd
- import video
- import time
-
- lcd.init(type=5, lcd_type = 3)
-
- AUDIO_PA_EN_PIN = 32
-
- i2s = I2S(I2S.DEVICE_0)
- i2s.channel_config(i2s.CHANNEL_1, I2S.TRANSMITTER, resolution=I2S.RESOLUTION_16_BIT,
- cycles=I2S.SCLK_CYCLES_32, align_mode=I2S.RIGHT_JUSTIFYING_MODE)
-
- if AUDIO_PA_EN_PIN:
- fm.register(AUDIO_PA_EN_PIN, fm.fpioa.GPIO1, force=True)
- wifi_en = GPIO(GPIO.GPIO1, GPIO.OUT)
- wifi_en.value(1)
-
- fm.register(34, fm.fpioa.I2S0_OUT_D1, force=True)
- fm.register(35, fm.fpioa.I2S0_SCLK, force=True)
- fm.register(33, fm.fpioa.I2S0_WS, force=True)
-
- def Video_Play():
- v = video.open("/sd/badapple.avi")
- print(v)
- v.volume(50)
- while True:
- if v.play() == 0:
- print("play end")
- break
- v.__del__()
-
- if __name__=='__main__':
- while(True):
- Video_Play()
复制代码
|