Display driving method and display driving device of dot-matrix display and display device
By obtaining and formatting the display data of native development applications of the operating system, the problem of poor compatibility of dot matrix displays is solved, and the display of advanced operating system application interfaces is realized, which improves compatibility and reduces development costs.
Patent Information
- Application Number
- CN202411984797.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-03-28
AI Technical Summary
In many cases, dot matrix displays cannot be displayed using applications natively developed by advanced operating systems, resulting in poor compatibility and limiting its further applications.
By obtaining the display data in the first format of the screen to be displayed under the preset operating system, formatting it into the display data in the second format, and driving the dot matrix display with the data in the second format.
The dot matrix display is realized to display the interface of applications developed natively by preset operating systems, improve compatibility, and reduce the development cost of dot matrix display drivers.
Smart Images

Figure CN119724093A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a display driving method, a display driving device and a display device of a dot matrix display. Background Art
[0002] Dot matrix display, such as dot matrix screen, is a display device based on small dot matrix. Each small dot is called a pixel. The brightness and color of the pixel can form an image or text. Dot matrix display has important applications in modern display technology.
[0003] However, in many cases, dot-matrix displays cannot be displayed using applications natively developed by advanced operating systems, which makes the compatibility of dot-matrix displays poor and limits further applications of dot-matrix displays. Summary of the invention
[0004] The present invention provides a display driving method, a display driving device and a display device of a dot matrix display, so that the dot matrix display can display the interface of an application program natively developed by a preset operating system.
[0005] According to one aspect of the present invention, there is provided a display driving method for a dot matrix display, comprising:
[0006] Acquire display data of a first format of a picture to be displayed under a preset operating system;
[0007] formatting the display data in the first format into display data in a second format;
[0008] The dot matrix display is driven to display using the display data in the second format.
[0009] Optionally, the obtaining of display data of a first format of a picture to be displayed under a preset operating system includes:
[0010] Acquire bitmap data of the picture to be displayed under the preset operating system;
[0011] The first type of display data of each pixel in the picture to be displayed is obtained according to the bitmap data of the picture to be displayed.
[0012] Optionally, formatting the display data in the first format into display data in a second format includes:
[0013] Mapping the display data in the first format to intermediate data; wherein the intermediate data is N bits, and the display data in the second format is M bits; M=K*N, K, M and N are all integers greater than or equal to 1;
[0014] The K consecutive intermediate data are spliced into one display data in the second format.
[0015] Optionally, the first format is int type, and the second format is char type;
[0016] Mapping the display data in the first format to the intermediate data includes: graying the int-type display data of each pixel into the intermediate data according to the corresponding sub-color data and the corresponding weight coefficient in the int-type display data of each pixel.
[0017] Optionally, the first format is of int type; and mapping the display data in the first format to intermediate data comprises:
[0018] The int type display data of each pixel point is compressed into the intermediate data; wherein the intermediate data includes color information.
[0019] Optionally, before obtaining the display data of the first format of the picture to be displayed under the preset operating system, the method further includes:
[0020] Determine whether the picture to be displayed is updated;
[0021] If the picture to be displayed is updated, the step of obtaining display data of the first format of the picture to be displayed under the preset operating system is performed.
[0022] Optionally, the screen to be displayed is a user interface of an application program natively developed for the preset operating system.
[0023] Optionally, the preset operating system includes at least one of Microsoft Windows, macOS, Linux, Google Chrome OS, iOS, Android, Huawei Hongmeng System, KaiOS, iPad OS and Fuchsia OS.
[0024] According to another aspect of the present invention, a display driving device of a dot matrix display is further provided, wherein the display driving device of the dot matrix display is used to execute the display driving method of the dot matrix display as described above; the display driving device comprises:
[0025] An acquisition module, used for acquiring display data of the first format of the picture to be displayed;
[0026] a formatting module, used for formatting the display data in the first format into display data in a second format;
[0027] A driving module is used to drive the dot matrix display to display with the display data in the second format.
[0028] According to another aspect of the present invention, there is further provided a display device, the display device comprising a video memory, a processor and the dot matrix display;
[0029] The video memory is used to store display data of a first format of a picture to be displayed under a preset operating system;
[0030] The processor is used for acquiring display data of the to-be-displayed picture in a first format, formatting the display data of the first format into display data of a second format, and driving the dot matrix display to display with the display data of the second format.
[0031] The technical solution of the embodiment of the present invention adopts a display driving method for a dot matrix display, which includes obtaining display data of a first format of a picture to be displayed under a preset operating system; formatting the display data of the first format into display data of a second format; and driving the dot matrix display to display with the display data of the second format. The display driving method for a dot matrix display does not directly drive the dot matrix screen with the display data of the first format of the picture to be displayed under the preset operating system, nor does it directly develop the display data of the second format under the preset operating system. Instead, the display data of the first format is first obtained, and then the display data of the first format is formatted into display data of the second format, and then the dot matrix display is driven to display with the display data of the second format. In other words, the user interface of the application program natively developed by the preset operating system can be displayed, so that the dot matrix display has higher compatibility and can reduce the development cost of the dot matrix display driver.
[0032] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flow chart of a display driving method for a dot matrix display provided by an embodiment of the present invention;
[0035] Figure 2 A flowchart of a display driving method for another dot matrix display provided by an embodiment of the present invention;
[0036] Figure 3A schematic diagram of the principle of formatting display data in a first format provided by an embodiment of the present invention;
[0037] Figure 4 A schematic structural diagram of a display driving device for a dot matrix display provided by an embodiment of the present invention;
[0038] Figure 5 A schematic structural diagram of a display device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0041] Figure 1 A flowchart of a display driving method for a dot matrix display provided by an embodiment of the present invention, referring to Figure 1 The display driving method of the dot matrix display may be executed by a display driving device of the dot matrix display. The display driving method of the dot matrix display includes:
[0042] Step S110, obtaining display data of a first format of a picture to be displayed under a preset operating system;
[0043] Specifically, the dot matrix display is, for example, a dot matrix screen, which includes a plurality of pixels, each of which may be an LED (Light Emitting Diode), a Micro LED (Micro Light Emitting Diode), an OLED (Organic Light Emitting Diode) or a liquid crystal, etc. Each pixel in the dot matrix screen can be independently controlled. The preset operating system is an operating system corresponding to the display driver, such as at least one of Microsoft Windows, macOS, Linux, Google Chrome OS, iOS, Android, Huawei Hongmeng System, KaiOS, iPad OS and Fuchsia OS. In the related art, the display data directly output by the preset operating system cannot be directly applied to the dot matrix display, and thus the dot matrix display cannot be used to display the screen to be displayed corresponding to the preset operating system.
[0044] In this embodiment, the screen to be displayed is, for example, the UI (User Interface) of an application corresponding to the dot matrix display. The display data in the first format may be display data corresponding to the user interface of an application natively developed based on a preset operating system, that is, display data corresponding to the user interface of an application developed using the native development language of the preset operating system. The user interface of an application natively developed based on a preset operating system has the characteristics of high development efficiency, low development cost, and supports a variety of UI control styles. However, the user interface of an application natively developed based on a preset operating system cannot be directly displayed on a dot matrix display. In the related art, if an application is developed under a UI framework that supports a dot matrix display in a preset operating system, the development cost is high, and the supported UI control styles are also relatively limited.
[0045] In this embodiment, firstly, display data of a first format of a to-be-displayed screen of an application program natively developed based on a preset operating system is obtained, which cannot be directly used to be sent to a dot matrix display.
[0046] Step S120, formatting the display data in the first format into display data in the second format;
[0047] Specifically, the display data in the second format is display data that can drive a dot matrix display. In the related art, the display data corresponding to the application developed under the UI framework that supports the dot matrix display in the preset operating system is the display data in the second format. However, this method is difficult to develop, the cost is high, and the supported UI control styles are also relatively limited. In this embodiment, the display data in the second format is not obtained directly, but the display data in the first format is first obtained, and then the display data in the first format is formatted, so that the screen to be displayed in the preset operating system can be displayed on the dot matrix display. In other words, the display driving method of this embodiment can display the user interface of the application developed natively by the user in the preset operating system. Formatting may specifically include operations such as data compression or grayscale, which will be explained later.
[0048] Step S130 , driving the dot matrix display to display with display data in a second format.
[0049] Specifically, after all display data in the first format in the picture to be displayed are formatted into data in the second format, the data can be sent to the data interface of the dot matrix display, thereby driving the dot matrix display to display.
[0050] In summary, the display driving method of the dot matrix display of the present embodiment can drive the dot matrix display to display the user interface of the application program natively developed based on the preset operating system, and has high compatibility. In addition, since there is no need to develop the application program based on the framework of the dot matrix display in the preset operating system, the development cost of the dot matrix display driver can also be reduced.
[0051] The technical solution of this embodiment adopts a display driving method for a dot matrix display, which includes obtaining display data of a first format of a picture to be displayed under a preset operating system; formatting the display data of the first format into display data of a second format; and driving the dot matrix display to display with the display data of the second format. The display driving method for a dot matrix display does not directly drive the dot matrix screen with the display data of the first format of the picture to be displayed under the preset operating system, nor does it directly develop the display data of the second format under the preset operating system. Instead, the display data of the first format is first obtained, and then the display data of the first format is formatted into display data of the second format, and then the display data of the second format is driven to display by the dot matrix display. In other words, the user interface of the application program natively developed by the preset operating system can be displayed, so that the dot matrix display has higher compatibility and can reduce the development cost of the dot matrix display driver.
[0052] Optionally, Figure 2 A flowchart of a display driving method for a dot matrix display provided by an embodiment of the present invention is provided. Figure 2In this embodiment, obtaining display data of a first format of a picture to be displayed under a preset operating system includes:
[0053] Step S111, obtaining bitmap data of a picture to be displayed under a preset operating system;
[0054] Specifically, a screenshot of the screen to be displayed may be taken through a screenshot interface in a preset operating system, thereby obtaining bitmap data of the screen to be displayed.
[0055] Step S112: acquiring first type display data of each pixel in the picture to be displayed according to the bitmap data of the picture to be displayed.
[0056] Specifically, each pixel in the bitmap data of the picture to be displayed may be traversed to obtain the first type of display data corresponding to each pixel.
[0057] The implementation scheme of this embodiment can use the interface provided by the preset operating system to obtain the first type of display data corresponding to the picture to be displayed, which is simple to operate and further reduces the driver development cost of the dot matrix display.
[0058] Step S120, formatting the display data in the first format into display data in the second format;
[0059] Step S130 , driving the dot matrix display to display with display data in a second format.
[0060] Optionally, formatting the display data in the first format into display data in the second format includes:
[0061] The display data in the first format is mapped to the intermediate data; wherein the intermediate data is N bits, and the display data in the second format is M bits; M=K*N, and K, M and N are all integers greater than or equal to 1.
[0062] Specifically, the display data in the second format includes M bits, and each display data in the second format includes display data corresponding to K pixels. The specific value of K can be determined according to the driving mode of the dot matrix display. For example, if in the driving mode of the dot matrix display, each display data in the second format includes display data of two pixels, then K is 2, and so on. In this embodiment, the value of N can be first determined according to the format of the driving data of the dot matrix display, and then the display data in the first format is mapped to N-bit intermediate data.
[0063] K consecutive intermediate data are concatenated into a display data in the second format.
[0064] Specifically, K corresponding intermediate data can be spliced according to the format of the driving data of the dot matrix display. For example, if a second format data of the dot matrix display is used to drive K consecutive pixels in the same row of pixels in the dot matrix display; then the K consecutive intermediate data can be the intermediate data corresponding to the K consecutive pixels in the same row of pixels in the image to be displayed. Of course, if a second format data of the dot matrix display is used to drive K consecutive pixels in the same column of pixels in the dot matrix display; then the K consecutive intermediate data can be the intermediate data corresponding to the K consecutive pixels in the same column of pixels in the image to be displayed.
[0065] Optionally, the first format is int type and the second format is char type; mapping the display data in the first format into intermediate data includes: graying the int type display data of each pixel into intermediate data according to the corresponding sub-color data and the corresponding weight coefficient in the int type display data of each pixel.
[0066] Specifically, Figure 3 A schematic diagram of the principle of formatting display data in a first format provided by an embodiment of the present invention, referring to Figure 3. This embodiment takes the case where each display data of the second format contains display data corresponding to two pixels, that is, K is 2 as an example. The display data of the first format is int-type display data, and each int-type display data includes 32 bits, and the sub-color data contained therein is red data, green data, and blue data. Among them, the 0th to 7th bits represent blue data, the 8th to 15th bits represent green data, the 16th to 23rd bits represent red data, and the 24th to 31st bits are Alpha channels, which can represent transparency data. The display data of the first format corresponding to the pixel is represented by RGB, that is, the display data of the first format corresponding to the first pixel is represented by RGB1, and so on. When the dot matrix display is a monochrome display, the display data of the first format can be gray-mapped. When gray-matrix mapping is performed on the display data of the first format, the transparency data can be discarded, and only the red data is multiplied by the corresponding weight coefficient, the blue data is multiplied by the corresponding weight coefficient, and the green data is multiplied by the corresponding weight coefficient, so as to obtain a four-bit intermediate data. The intermediate data is represented by ZJ, that is, RGB1 is mapped to ZJ1, RGB2 is mapped to ZJ2, and so on. The four bits of the intermediate data ZJ represent the grayscale Gray. When all the display data in the first format are mapped, the two adjacent intermediate data are spliced into a display data SZ in the second format, that is, the first display data SZ1 in the second format contains the first intermediate data ZJ1 and the second intermediate data ZJ2, and so on. It should be noted that when mapping color data to grayscale data, the weight coefficients corresponding to each color are well known to those skilled in the art and will not be repeated here. It should also be noted that, in some embodiments, the int-type display data of each pixel point is grayscaled into intermediate data, which can be not only grayscaled into the intermediate data corresponding to the above-mentioned white, but also grayscaled into other monochrome grayscale data, such as yellow, blue, etc., which is not specifically limited in this embodiment.
[0067] When all the intermediate data are spliced, the formatted display data in the second format can be obtained, and then the display data in the second format can be used to drive the dot matrix display to display.
[0068] Of course, in some other implementations, K may also be other values. For example, if K is 4, each int-type display data needs to be mapped into a two-bit intermediate data, and then the four intermediate data are concatenated into a display data in the second format.
[0069] Optionally, in some other implementations, the first format is of int type; mapping the display data in the first format to intermediate data includes:
[0070] The int type display data of each pixel is compressed into intermediate data; wherein the intermediate data includes color information.
[0071] Specifically, if the dot matrix display is a color dot matrix display, it can display multiple colors. Then the int type display data can be compressed. For example, the display data corresponding to the color dot matrix display is 16-bit short type data, and the 8-bit data of each color in the int type display data can be compressed into 4-bit data, thereby compressing a first format of display data into a second format of display data. Each second format of display data can drive a pixel of the color dot matrix display to display. Therefore, in this embodiment, there is no need to compress the int type display data and then splice it to obtain the second format of display data.
[0072] Optionally, before obtaining display data of the first format of the picture to be displayed under the preset operating system, the method further includes:
[0073] Determine whether the picture to be displayed is updated; if the picture to be displayed is updated, execute the step of obtaining display data of the first format of the picture to be displayed under the preset operating system.
[0074] Specifically, the refresh frequency of the picture displayed by the dot matrix display is generally not too high, for example, 10 frames or 20 frames, that is, 10 frames or 20 frames of pictures are refreshed in one second. When the picture to be displayed is updated, the operation of obtaining the display data in the first format is performed in time, so as to ensure that the dot matrix display can respond to the changes of the user interface corresponding to the application in time. When the picture to be displayed is not updated, the dot matrix display is controlled to maintain the current display picture.
[0075] The present invention also provides a display driving device for a dot matrix display, which is used to execute the driving method for the dot matrix display provided by any embodiment of the present invention. Figure 4 As shown, Figure 4 The present invention provides a schematic diagram of the structure of a display driving device of a dot matrix display provided by an embodiment of the present invention. The display driving device includes an acquisition module 210, a formatting module 220 and a driving module 230. The acquisition module 210 is used to acquire display data of a first format of a picture to be displayed; the formatting module 220 is used to format the display data of the first format into display data of a second format; the driving module 230 is used to drive the dot matrix display to display with the display data of the second format.
[0076] The specific working principle and beneficial effects of the display driving device of the dot matrix display can be referred to the description of the display driving method of the dot matrix display of the present invention, which will not be repeated here.
[0077] The present invention also provides a display device, such as Figure 5 As shown, Figure 5A schematic diagram of the structure of a display device provided by an embodiment of the present invention. The display device includes a video memory 31, a processor 32, and a dot matrix display 40. The video memory 31 is used to store display data of a first format of a picture to be displayed under a preset operating system; the processor 32 is used to obtain the display data of the first format of the picture to be displayed, format the display data of the first format into display data of a second format, and drive the dot matrix display to display with the display data of the second format.
[0078] Specifically, the display memory 31 and the processor 32 of the display device can be integrated on the ARM development board 30, and the operating system corresponding to the processor 32 is a preset operating system. The display device of this embodiment can natively develop corresponding applications based on the preset operating system, and the dot matrix display can display the user interface of the application, which has the advantages of low development difficulty and low cost. Optionally, the processor 32 and the dot matrix display 40 can be connected via SPI (Serial Peripheral Interface). Or the processor 32 and the dot matrix display 40 can be connected via IIC (Inter-Integrated Circuit).
[0079] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0080] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A display driving method for a dot matrix display, characterized in that: include: Acquire display data of a first format of a picture to be displayed under a preset operating system; formatting the display data in the first format into display data in a second format; The dot matrix display is driven to display using the display data in the second format.
2. The display driving method of the dot matrix display according to claim 1, characterized in that: The step of obtaining display data of a first format of a picture to be displayed under a preset operating system includes: Acquire bitmap data of the picture to be displayed under the preset operating system; The first type of display data of each pixel in the picture to be displayed is obtained according to the bitmap data of the picture to be displayed.
3. The display driving method of the dot matrix display according to claim 2, characterized in that: The step of formatting the display data in the first format into the display data in the second format comprises: Mapping the display data in the first format to intermediate data; wherein the intermediate data is N bits, and the display data in the second format is M bits; M=K*N, K, M and N are all integers greater than or equal to 1; The K consecutive intermediate data are spliced into one display data in the second format.
4. The display driving method of the dot matrix display according to claim 3, characterized in that: The first format is int type, and the second format is char type; Mapping the display data in the first format to the intermediate data includes: graying the int-type display data of each pixel into the intermediate data according to the corresponding sub-color data and the corresponding weight coefficient in the int-type display data of each pixel.
5. The display driving method of a dot matrix display according to claim 3, characterized in that: The first format is int type; and mapping the display data in the first format to intermediate data includes: The int type display data of each pixel point is compressed into the intermediate data; wherein the intermediate data includes color information.
6. The display driving method of a dot matrix display according to claim 1, characterized in that: Before obtaining the display data of the first format of the picture to be displayed under the preset operating system, the method further includes: Determine whether the picture to be displayed is updated; If the picture to be displayed is updated, the step of obtaining display data of the first format of the picture to be displayed under the preset operating system is performed.
7. The display driving method of a dot matrix display according to claim 1, characterized in that: The picture to be displayed is a user interface of an application program natively developed by the preset operating system.
8. The display driving method of a dot matrix display according to claim 1, characterized in that: The preset operating system includes at least one of Microsoft Windows, macOS, Linux, Google ChromeOS, iOS, Android, Huawei Hongmeng system, KaiOS, iPad OS and Fuchsia OS.
9. A display driving device for a dot matrix display, characterized in that: The display driving device of the dot matrix display is used to execute the display driving method of the dot matrix display according to any one of claims 1 to 8; The display driving device comprises: An acquisition module, used for acquiring display data of the first format of the picture to be displayed; a formatting module, used for formatting the display data in the first format into display data in a second format; A driving module is used to drive the dot matrix display to display with the display data in the second format.
10. A display device, characterized in that: The display device includes a video memory, a processor and a dot matrix display; The video memory is used to store display data of a first format of a picture to be displayed under a preset operating system; The processor is used for acquiring display data of the to-be-displayed picture in a first format, formatting the display data of the first format into display data of a second format, and driving the dot matrix display to display with the display data of the second format.