Display Module

Display Module 13.2 is an expansion module for HD audio and video, using GAOYUN GW1NR series FPGA chip to output display signals, and employing the LT8618S chip for signal output conditioning.

Support the following products:

DisplayModule

Micropython Example:

 1# SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
 2#
 3# SPDX-License-Identifier: MIT
 4
 5import os, sys, io
 6import M5
 7from M5 import *
 8
 9
10label0 = None
11label1 = None
12module_display = None
13
14
15def setup():
16    global label0, label1, module_display
17
18    M5.begin()
19    Widgets.fillScreen(0x222222)
20    label0 = Widgets.Label("CoreS3", 127, 109, 1.0, 0xFFFFFF, 0x222222, Widgets.FONTS.DejaVu18)
21
22    module_display = M5.addDisplay(
23        None,
24        0,
25        {
26            "module_display": {
27                "enabled": True,
28                "width": 1280,
29                "height": 720,
30                "output_width": 1280,
31                "output_height": 720,
32                "refresh_rate": 60,
33                "scale_w": 1,
34                "scale_h": 1,
35                "pixel_clock": 74250000,
36            }
37        },
38    )
39    label1 = Widgets.Label(
40        "Display", 506, 318, 1.0, 0xFFFFFF, 0x222222, Widgets.FONTS.DejaVu72, module_display
41    )
42
43
44def loop():
45    global label0, label1, module_display
46    M5.update()
47
48
49if __name__ == "__main__":
50    try:
51        setup()
52        while True:
53            loop()
54    except (Exception, KeyboardInterrupt) as e:
55        try:
56            from utility import print_error_msg
57
58            print_error_msg(e)
59        except ImportError:
60            print("please update to latest firmware")

UIFLOW2 Example:

example.png

cores3_display_example.m5f2

class DisplayModule

Constructors

class DisplayModule(port: None, width: int = 1280, height: int = 720, refresh_rate: float = 60.0, output_width: int = 1280, output_height: int = 720, scale_w: int = 1, scale_h: int = 1, pixel_clock=74250000)

Initialize the Module Display

参数:
  • port (tuple) – The port to which the Module Display is connected. port[0]: not used, port[1]: dac pin.

  • width (int) – The width of the Module Display.

  • height (int) – The height of the Module Display.

  • refresh_rate (int) – The refresh rate of the Module Display.

  • output_width (int) – The output width of the Module Display.

  • output_height (int) – The output height of the Module Display.

  • scale_w (int) – The scale width of the Module Display.

  • scale_h (int) – The scale height of the Module Display.

  • pixel_clock (int) – The pixel clock of the Module Display.

UIFLOW2:

init.png