Screen display method and device, electronic equipment and medium

By determining the target byte and data bit, the LED dot matrix screen can start to display from any data bit inside the byte, solving the problem of only displaying the first data bit in the byte in the prior art, and improving the display efficiency and effect.

CN118942378APending Publication Date: 2024-11-12ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310537226.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

When displaying, existing LED dot matrix screens can only be displayed from the first data bit of byte, and it is difficult to display from the non-first data bit of byte, resulting in increased processor performance consumption and low display efficiency.

Method used

Determine the target byte where the data bits to be displayed in the current scan period by presetting the number of moving bits, the previous first display bits, and the previous target byte, and start reading the preset byte number of bytes from the target byte. To be displayed, the data is sent to the screen for shift display starting from the first data bit of the target byte.

Benefits of technology

No need for complicated processor processing, reduces the processor's computing volume, realizes display starting from any data bits within the byte, and improves display efficiency and effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118942378A_ABST
    Figure CN118942378A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a screen display method and device, electronic equipment and a medium. The method comprises the following steps: determining a target byte where a data bit needing to be displayed in a first screen dot matrix in a current scanning period is located and redundant bits which do not need to be displayed in the first screen dot matrix in the target byte according to a preset moving digit, a previous first display digit and a previous target byte; starting from the target byte, reading to-be-displayed data of a preset byte number from the storage area; and determining a target digit according to the number of the scanning dot matrixes and the redundant digits, and sending data of the target digit in the to-be-displayed data to a screen from the first data bit of the target byte for shift display. According to the scheme, display can be started from any data bit in the bytes when the display data on the screen is switched in a rolling manner, and the processor does not need to perform responsible operation on the to-be-displayed data, so that the calculation amount of the processor is reduced, the display complexity is reduced, and the display efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a screen display method, device, electronic device and medium. Background Art

[0002] At present, LED (light-emitting diode) dot matrix screens are widely used. Many LED screens have many rich display effects and can display a variety of Chinese characters, letters, numbers, symbols, etc., and can be moved dynamically. When the dot matrix screen displays, the dot matrix font library is generally stored in a fixed storage medium (such as FLASH). When executing the display action, the font library in the storage medium is read into the memory, and the CPU lights up the screen according to the font library.

[0003] One dot in the dot matrix screen corresponds to one data bit, and one data bit of data is sent to a dot matrix screen for display. However, when reading data, it generally only supports reading in bytes as the smallest unit, and when displaying on the dot matrix screen, it only supports displaying from the first data bit of the byte, and it is difficult to achieve the effect of displaying from a non-first data bit of the byte. Summary of the invention

[0004] The present application provides a screen display method, device, electronic device and medium to realize data display on a dot matrix screen starting from any data bit within a byte.

[0005] According to one aspect of the present application, a screen display method is provided, the method comprising:

[0006] Determine the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess bits in the target byte that do not need to be displayed in the first screen dot matrix, according to the preset number of shifted bits, the last first displayed bit, and the last target byte;

[0007] The preset number of shifted bits is the number of dots shifted by the screen display data in the current scan cycle relative to the previous scan cycle; the previous first display bit is the data bit displayed in the first screen dot matrix in the previous scan cycle; the previous target byte is the target byte in the previous scan cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scan cycle;

[0008] Starting from the target byte, a preset number of bytes of data to be displayed is read from the storage area; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrixes plus one; the number of scanning dot matrixes is the number of screen dot matrixes of scanning rows or scanning columns in the current scanning cycle;

[0009] The target number of bits is determined according to the number of scanning dot matrixes and the excess number of bits, and starting from the first data bit of the target byte, the target number of bits of data in the data to be displayed is sent to the screen for shift display.

[0010] According to another aspect of the present application, a screen display device is provided, the device comprising:

[0011] The reading information determination module is used to determine the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess digits in the target byte that do not need to be displayed in the first screen dot matrix according to the preset number of moving digits, the last first displayed digit and the last target byte;

[0012] The preset number of shifted bits is the number of dots shifted by the screen display data in the current scan cycle relative to the previous scan cycle; the previous first display bit is the data bit displayed in the first screen dot matrix in the previous scan cycle; the previous target byte is the target byte in the previous scan cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scan cycle;

[0013] A reading module, used for reading a preset number of bytes of data to be displayed from the storage area starting from the target byte; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrixes plus one; the number of scanning dot matrixes is the number of screen dot matrixes of scanning rows or scanning columns in the current scanning cycle;

[0014] The display sending module is used to determine the target number of bits according to the number of scanning dot matrixes and the excess number of bits, and starting from the first data bit of the target byte, send the data of the target number of bits in the data to be displayed to the screen for shift display.

[0015] According to another aspect of the present application, an electronic device is provided, the device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to at least one processor; wherein,

[0018] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the screen display method of any embodiment of the present application.

[0019] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the screen display method of any embodiment of the present application when executed by a processor.

[0020] The technical solution of the embodiment of the present application determines the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess bits in the target byte that do not need to be displayed in the first screen dot matrix according to the preset number of movement bits, the previous first number of display bits and the previous target byte; wherein the preset number of movement bits is the number of dots moved by the screen display data in the current scanning cycle relative to the previous scanning cycle; the previous first number of display bits is the data bits displayed in the first screen dot matrix in the previous scanning cycle; the previous target byte is the target byte in the previous scanning cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scanning cycle; starting from the target byte, a preset number of bytes of data to be displayed is read from the storage area; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrices plus one; the number of scanning dot matrices is the number of screen dot matrices of the scanning row or scanning column in the current scanning cycle; the target number of bits is determined according to the number of scanning dot matrices and the excess number of bits, and starting from the first data bit of the target byte, the data of the target number of bits in the data to be displayed is sent to the screen for shift display. The above solution does not require the processor to perform complex processing, reduces the amount of processor calculations, and realizes displaying data in the screen dot matrix starting from any data bit within a byte, thereby improving display efficiency and display effect.

[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flow chart of a screen display method provided according to Embodiment 1 of the present application;

[0024] Figure 2 This is a schematic diagram of scanning and displaying Chinese characters from left to right provided in Embodiment 1 of the present application;

[0025] Figure 3 This is a schematic diagram of scanning and displaying Chinese characters from top to bottom provided in Embodiment 1 of the present application;

[0026] Figure 4 It is a partial display schematic diagram provided according to the first embodiment of the present application;

[0027] Figure 5is a screen control schematic diagram provided according to the first embodiment of the present application;

[0028] Figure 6 This is a first schematic diagram of Chinese character scrolling display provided according to the first embodiment of the present application;

[0029] Figure 7 This is a second schematic diagram of Chinese character scrolling display provided according to the first embodiment of the present application;

[0030] Figure 8 is a schematic diagram of a shift chip provided according to Embodiment 1 of the present application;

[0031] Fig. 9 is a flow chart of a screen display method provided according to Embodiment 2 of the present application;

[0032] Fig.10 This is a schematic diagram of the screen display of the previous scanning cycle provided in the second embodiment of the present application;

[0033] Fig.11 is a flow chart of a screen display method provided according to Embodiment 3 of the present application;

[0034] Fig.12 is a structural schematic diagram of a screen display device provided according to Embodiment 4 of the present application;

[0035] Fig.13 It is a structural diagram of an electronic device that implements a screen display method provided in Example 5 of the present application. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0037] It should be noted that the terms "first", "second", "third", "fourth", "actual", "preset", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations 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.

[0038] Embodiment 1

[0039] Figure 1 A flowchart of a screen display method is provided for the first embodiment of the present application. The embodiment of the present application can be applied to the case where data is displayed on the screen. Typically, it can be applied to the case where data is displayed on the screen in a moving manner. The embodiment of the present application is applicable to LED dot matrix screens. Display principle of LED dot matrix screen: LED dot matrix screen refers to a structurally independent LED display unit composed of a number of LED lamp beads, and a display set composed of a specific circuit structure. Common ones are 32*64, 64*64, 32*128, etc. A pixel of the LED dot matrix screen corresponds to a light-emitting point. Implementation principle of dot matrix font library: The dot matrix font library divides each character into a number of dot identifiers, such as 16*16, 8*16 dots or more (determined by the size of the font), and uses the virtuality and reality of each dot to represent Chinese characters or letters, etc. Taking the 16*16 Chinese dot matrix font library as an example, there are a total of 256 pixels, that is, 256 / 8=32 bytes, and its storage in the memory occupies 32 bytes of storage space. As Figure 2 As shown in the figure, when scanning column by column, each column of Chinese characters is 16 data bits. When displaying Chinese characters, only 32 bytes need to be read at one time, and each two bytes are displayed on the screen as a column to form a Chinese character. Figure 3 As shown in the figure, when scanning line by line, each line of a Chinese character is 16 data bits. When displaying Chinese characters, only 32 bytes need to be read at one time, and two bytes are displayed on the screen as a line to form a Chinese character. Because the on and off of each point of the LED screen bead only needs one bit to represent (assuming the screen is a monochrome screen), the smallest unit of data in computer storage and program design is a byte, and a byte contains 8 bits. According to the direction in which bits are combined into bytes, it is divided into a character library corresponding to row scanning or a character library corresponding to column scanning. Figure 2 The column scans the corresponding font library. Figure 3The character library corresponding to the line scan. Each bit of the dot matrix character library represents each pixel of the LED dot matrix screen. By displaying the dot matrix character library at any position of the LED dot matrix screen, the LED dot matrix screen can display any character. Figure 4 The figure shows the effect of a 16*16 word displayed on a 32*32 dot matrix screen. Every 8 bits constitute a byte. Combined with the basic principle of computer storage, CPU and other processors can easily obtain the first bit of each byte according to the pointer / address, but when reading other bits, the task logic of the processor must be changed to read data in smaller units (bits). Compared with byte reading, the performance consumption of the controller is greatly increased.

[0040] The driving principle of LED dot matrix screen: LED dot matrix screen is composed of several LED lamp beads, and controlling the screen is to control the light and dark of these LED lamp beads. Figure 5 As shown in the figure, when the lamp bead with coordinate (1,1) needs to be lit, the column signal of the first column and the row signal of the first row need to be given at the same time. Figure 5 Take the 16*32 screen in the example, the 4-16 decoder gives the column signals from the 1st column to the 16th column in turn. When the 1st column of the screen is lit by the column signal, the shift chip will give a 32-bit row signal, so that all the lamp beads in the 1st column can be controlled. The decoder gives the column signal of the 2nd column again, and the shift chip gives the row signal again, and the whole screen can be controlled in this cycle. The characteristic of the decoder is that it can only give one bit signal at a time. Of course, the decoder can also be connected in parallel to display multiple columns at the same time, and the shift chip can be connected in multiple levels in series, and theoretically can give any number of bit signals.

[0041] The method in the embodiment of the present application can be executed by a screen display device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0042] S110, determining the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess bits in the target byte that do not need to be displayed in the first screen dot matrix according to the preset number of shifted bits, the previous first displayed bit number and the previous target byte.

[0043] Among them, the preset number of moving bits is the number of dots moved by the screen display data in the current scanning cycle relative to the previous scanning cycle; the previous first display bit number is the data bit displayed in the first screen dot matrix in the previous scanning cycle; the previous target byte is the target byte in the previous scanning cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scanning cycle.

[0044] Wherein, the preset moving number is the number of dot matrices by which the screen display data in the current scanning period moves relative to the previous scanning period. The current scanning period is the period when scanning and displaying on the screen currently, and the previous scanning period is the period when scanning and displaying on the screen last time. Exemplarily, when the data moves and is displayed on the screen, within one scanning period, the data is displayed at the first position on the screen. In the next scanning period, the data may move to the second position on the screen for display. In the next-next scanning period, the data may move to the third position on the screen for display. As Figure 6 and Figure 7 shown, within one scanning period in Figure 6 , two complete characters "文化" (culture) are displayed on the screen. In the next scanning period in Figure 7 , the displayed characters move left as a whole, and on the screen, part of "文" and "强" and the whole character "化" are displayed. Figure 6 and Figure 7 are the cases where the characters displayed on the screen move left, and the characters can also move right for display. In the embodiments of the present application, the LED dot matrix screen is an array screen composed of a plurality of LED lamp beads, and the array composed of a plurality of LED lamp beads is the screen dot matrix. The LED dot matrix screen performs display by reading the dot matrix font library. In the dot matrix font library, each character is divided into several dots, such as 16*16 or 8*16 or 32*32 dots, or more, and a character is represented by a set of these dots. Exemplarily, as Figure 2 shown, Figure 2 a character "辉" (bright) in it is composed of 16*16 dots, and there are differences in the signals between different dots. One signal is highlighted relative to another signal to display the character. The upper first display bit is the data bit displayed in the first screen dot matrix in the previous scanning period. The upper first display bit is the upper redundant bit plus one, and the upper redundant bit is the redundant bit in the previous scanning period. The redundant bit is the number of bits of the data bits that do not need to be displayed in the screen dot matrix in the target byte of the data to be displayed sent into the screen. The upper target byte is the starting byte when reading the data to be displayed in the previous scanning period, and it is also the byte where the data bit displayed in the first screen dot matrix in the previous scanning period is located. The first screen dot matrix is the screen dot matrix scanned first in the current scanning period. As Figure 6 shown, if the scanning and display direction is Figure 6 from left to right in Figure 6 , the first screen dot matrix is the leftmost column of dot matrices. If the scanning and display direction is Figure 6 from top to bottom in

[0045] Exemplarily, according to the data display situation on the screen in the previous scanning period and the preset moving number of bits, the data bits that need to be displayed in the first screen dot matrix in the current scanning period can be determined. For example, in Figure 6 and Figure 7 In the case shown, each character's data occupies two bytes, and each byte has eight data bits. In Figure 6 , if the scanning and display direction is from left to right, the data bit displayed in the first screen dot matrix in the previous scanning cycle is the first column in the dot matrix of the character "文", that is, the first data bit of the first byte of the character "文". Assuming that the preset moving number of bits is four, in Figure 7 , the data bit to be displayed in the first screen dot matrix in the current scanning cycle is the fifth column of the character "文", that is, the fifth data bit of the first byte of the character "文". The byte where the data bit to be displayed in the first screen dot matrix in the current scanning cycle is located is used as the target byte. In the above example, Figure 6 the target byte in is the first byte where the first data bit is located, Figure 6 the target byte in is the first byte where the fifth data bit is located. If the data is displayed on the screen for the first time and there is no previous scanning cycle, the starting byte for reading data from the dot matrix font library by default is used as the target byte, and the first displayed bit number is one.

[0046] In the embodiment of the present application, if the data bit at the start of the screen display is not the first data bit of the byte, there will be a situation where not all the data bits in the target byte are displayed on the screen. Therefore, it is necessary to determine the number of data bits that do not need to be displayed in the screen dot matrix. As Figure 7 shown, only a part of the character "文" is displayed. The number of data bits of the first byte to be displayed in the first screen dot matrix is four. Each byte includes eight data bits, and the number of data bits of the first byte that do not need to be displayed in the first screen dot matrix is four.

[0047] S120. Starting from the target byte, read the data to be displayed with a preset number of bytes from the storage area; wherein, the preset number of bytes is at least the number of bytes corresponding to the scanning dot matrix quantity plus one; the scanning dot matrix quantity is the number of screen dot matrices in the scanning row or scanning column in the current scanning cycle.

[0048] Among them, the storage area is an area where the dot matrix font is stored. The dot matrix font can be stored in the form of a two-dimensional array, representing the data corresponding to each dot matrix of the dot matrix font. The preset number of bytes is at least the number of bytes corresponding to the number of scanned dots plus one. The number of scanned dots is the number of screen dots in the scanned row of the current scan cycle, or the number of screen dots in the scanned column. If the scanning direction in the current scan cycle is left and right, the number of scanned dots is the number of screen dots in a column. If the scanning direction in the current scan cycle is up and down, the number of scanned dots is the number of screen dots in a row. The number of bytes corresponding to the number of scanned dots is the number of scanned dots divided by the number of data bits in a single byte. If the number of scanned dots is 64, and one byte includes eight data bits, the number of bytes corresponding to the number of scanned dots is 64 / 8=8. In general, when displaying data on the screen, it is only necessary to read and send the data of the number of bytes corresponding to the number of scanned dots. In the embodiment of the present application, since the first screen dot matrix display may not display the data of the first data bit of the first byte, it may start displaying from the middle data bit of the first byte, and it is impossible to read from the data bits inside the byte when reading the data, therefore, starting from the target byte, a preset number of bytes of data to be displayed are read from the storage area, that is, at least the number of bytes corresponding to the number of scanned dots plus one byte are read to ensure that all the data displayed on the screen are read without omission.

[0049] S130, determining a target number of bits according to the number of scanning dot matrixes and the excess number of bits, and sending data of the target number of bits in the data to be displayed to the screen for shift display starting from the first data bit of the target byte.

[0050] Exemplarily, the target number of bits can be the sum of the number of scanned dots and the number of excess bits. Since the data bit displayed in the first screen dot matrix is ​​not the first data bit of the byte, and the reading and display of the data to be displayed can only be performed from the first data bit of the entire byte, the sum of the number of scanned dots and the number of excess bits can be used as the target number of bits, and starting from the first data bit of the target byte, the target number of bits in the data to be displayed can be sent to the screen for display. With the help of the principle of the shift chip, the data of the excess bits of the target byte first sent to the screen overflows, and the data of the scanned dot matrix number of data bits after the excess bits are retained and displayed on the screen, thereby realizing the display starting from the data bits inside the byte.

[0051] Exemplarily, the schematic diagram of the shift chip is as follows Figure 8As shown. This is the case where two shift chips are connected in series. The CLK terminal receives the clock signal, and the Data terminal receives the bit data. The LAT terminal receives the latch signal. Every time the CLK receives a clock signal, the Data terminal receives a bit of data accordingly. The first bit of data arrives at the R1-1 pin first. If the second bit of data is received, the first bit of data is moved to the R1-2 pin, and the second bit of data arrives at the R1-1 pin. If the third bit of data is received, the first bit of data is moved to the R1-3 pin, the second bit of data is moved to the R1-2 pin, and the third bit of data reaches the R1-1 pin. And so on. If 32 bits of data are input, there is data from the R1-1 pin to the R1-32 ​​pin. If data is received after 32 bits of data are input, the data of the R1-32 ​​pin overflows, the original data of the R1-31 pin is moved to R1-32, and the original data of the R1-30 pin is moved to R1-31. And so on, the original data of the R1-1 pin is moved to R1-2, and the newly received data arrives at R1-1. The subsequent received data is shifted in the same way. If the received data exceeds 32 bits, the first received data will overflow. When the bus controller reads data, the byte is the smallest unit, so the data is sent to the shift chip starting from the first data bit of the data to be displayed. When the data sent to the shift chip reaches the target number of bits, the first extra data bits sent overflow, and the data that finally remains in the shift chip is the data to be displayed on the screen. The data in the shift chip at this time is transmitted to the screen for display.

[0052] The technical solution of the embodiment of the present application, the technical solution of the embodiment of the present application, according to the preset number of movement bits, the previous first display bit number and the previous target byte, determines the target byte where the data bit to be displayed in the first screen dot matrix in the current scanning cycle is located, and the excess number of bits in the target byte that do not need to be displayed in the first screen dot matrix; wherein the preset number of movement bits is the number of dots moved by the screen display data in the current scanning cycle relative to the previous scanning cycle; the previous first display bit number is the data bit displayed in the first screen dot matrix in the previous scanning cycle; the previous target byte is the target byte in the previous scanning cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scanning cycle; starting from the target byte, read the preset number of bytes of data to be displayed from the storage area; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrices plus one; the number of scanning dot matrices is the number of screen dot matrices of the scanning row or scanning column in the current scanning cycle; determine the target number of bits according to the number of scanning dot matrices and the excess number of bits, and starting from the first data bit of the target byte, send the target number of bits of data in the data to be displayed to the screen for shift display. The above solution does not require the processor to perform complex processing, reduces the amount of processor calculations, and realizes displaying data in the screen dot matrix starting from any data bit within a byte, thereby improving display efficiency and display effect.

[0053] Embodiment 2

[0054] Fig. 9 This is a flow chart of a screen display method provided in the second embodiment of the present application. The present embodiment is optimized based on the above embodiment. For solutions not described in detail in the present embodiment, please refer to the above embodiment. Fig. 9 As shown, the method of the embodiment of the present application specifically includes the following steps:

[0055] S210, determining the number of offset bytes according to the preset number of shift bits and the last first display bit number.

[0056] Exemplarily, the last first display digit number can reflect the data bit number of the last target byte displayed in the first screen dot matrix in the last scanning cycle. According to the preset number of movement digits and the data bit displayed in the first screen dot matrix in the last scanning cycle, the data bit displayed in the first screen dot matrix after the data movement is determined, thereby determining which target byte the data bit falls on. Exemplarily, assuming that the display data movement direction is from left to right, the preset number of movement digits is eight, and the last extra digit is three, then the last first display digit number is the fourth data bit in the last target byte. In the current scanning cycle, on this basis, eight data bits are moved to the right, and the display data bit in the first screen dot matrix is ​​determined to be the fourth data bit in the next byte of the last target byte, and the number of offset bytes is determined to be one. The same is true for the case of movement from right to left, and the number of offset bytes is calculated in this way.

[0057] S220. Determine the target byte of the current scanning cycle according to the previous target byte and the offset byte number.

[0058] Among them, the preset number of moving bits is the number of dots moved by the screen display data in the current scanning cycle relative to the previous scanning cycle; the previous first display bit number is the data bit displayed in the first screen dot matrix in the previous scanning cycle; the previous target byte is the target byte in the previous scanning cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scanning cycle.

[0059] Exemplarily, the target byte of the current scanning cycle is determined according to the previous target byte number and the offset byte number. Exemplarily, if the display data moves from left to right, the target byte of the current scanning cycle is the previous target byte plus the offset byte number. If the display data moves from right to left, the target byte of the current scanning cycle is the previous target byte minus the offset byte number.

[0060] In the embodiment of the present application, if the scanning display direction of the screen is opposite to the periodic moving direction of the display data, the offset byte number is determined according to the preset moving bit number and the previous first display bit number, including:

[0061] The sum of the preset shifting digits and the last first displayed digit is divided by the single-byte data digits and rounded to obtain the offset byte number;

[0062] Accordingly, determining the target byte of the current scanning cycle according to the previous target byte and the offset byte number includes:

[0063] The sum of the previous target byte and the offset byte number is used as the target byte of the current scanning cycle.

[0064] For example, if the scanning and displaying direction of the screen is opposite to the periodic moving direction of the display data, for example, the screen is scanned and displayed from left to right, and the display data is periodically moved from right to left, or the screen is scanned and displayed from right to left, and the display data is periodically moved from left to right, or the screen is scanned and displayed from top to bottom, and the display data is periodically moved from bottom to top, or the screen is scanned and displayed from bottom to top, and the display data is periodically moved from top to bottom, then the sum of the preset number of movement bits and the number of bits of the last first display is divided by the number of bits of the single-byte data and rounded to obtain the number of offset bytes. Assuming that the preset number of movement bits is n and the number of bits of the last first display is m, the number of offset bytes is Where [] is a rounding symbol. Accordingly, the target byte is the sum of the previous target byte and the offset byte. Assuming that the previous target byte is the Xth byte, the target byte is For example, Fig.10 As shown, assuming Fig.10 This is the effect of the data displayed on the screen in the previous scan cycle. The fourth data bit of the second byte is displayed in the first screen dot matrix. The previous first display digit is four, and the previous target byte is the second byte. Assuming the preset number of moving digits is seven, the number of offset bytes is The target byte is 2+1=3, that is, the target byte is the third byte.

[0065] In an embodiment of the present application, if the scanning display direction of the screen is the same as the periodic moving direction of the display data, the offset byte number is determined according to the preset moving bit number and the previous first display bit number, including:

[0066] If the preset shifting digit number is greater than the last first displayed digit number, the offset byte number is determined according to the difference between the preset shifting digit number and the last first displayed digit number divided by the number of single-byte data digits;

[0067] Otherwise, the offset byte number is determined to be zero;

[0068] Accordingly, determining the target byte of the current scanning cycle according to the previous target byte and the offset byte number includes:

[0069] The difference between the previous target byte and the offset byte number is used as the target byte of the current scanning cycle.

[0070] Exemplarily, if the scanning and displaying direction of the screen is the same as the periodic moving direction of the display data, for example, the screen is scanned and displayed from left to right, and the display data is periodically moved from left to right, or the screen is scanned and displayed from right to left, and the display data is periodically moved from right to left, or the screen is scanned and displayed from top to bottom, and the display data is periodically moved from top to bottom, or the screen is scanned and displayed from bottom to top, and the display data is periodically moved from bottom to top, then the preset number of moving bits is compared with the size of the last first display bit. According to the size of the last first display bit and the preset number of moving bits, it is determined whether the last extra bit in the last target byte meets the requirement of the preset number of moving bits, so as to determine whether the target byte to be read this time is still the last target byte. If the preset number of moving bits is greater than the last first display bit, it means that the last extra bit in the last target byte is not enough for the preset number of moving bits, and more bytes of data need to be obtained for data movement, so the number of offset bytes is determined according to the difference between the preset number of moving bits and the last first display bit, divided by the result obtained by the number of single-byte data bits. If the preset number of movement bits is less than or equal to the last first displayed number of bits, it is determined that the last excess number of bits in the last target byte can still meet the requirement of the preset number of movement bits for data movement, so there is no need to read more bytes, and the offset byte number is zero, that is, the target byte takes the previous target byte.

[0071] In the embodiment of the present application, the number of bytes of the offset is determined according to the difference between the preset number of shifted bits and the number of the first displayed bits, divided by the number of single-byte data bits, including:

[0072] Divide the difference between the preset number of shifted bits and the last first displayed number of bits by the number of single-byte data bits to obtain an integer value and a remainder value;

[0073] If the remainder value is zero, the rounded value is used as the offset byte number;

[0074] Otherwise, the rounded value is increased by 1 as the offset byte number.

[0075] Exemplarily, the difference between the preset number of shifted bits and the last first displayed bit is divided by the number of single-byte data bits, and the number of offset bytes can be determined based on the rounded value and the remainder value. In order to meet the requirement of the number of data bits, the offset byte number is rounded up. If the remainder value is zero, the rounded value is used as the offset byte number. If the remainder value is not zero, the rounded value plus one is used as the offset byte number. Assuming that the preset number of shifted bits is n and the last first displayed bit is m, if n is greater than m, the rounded value and remainder value of (nm) / 8 are determined. If the remainder value is 0, the rounded value is used as the offset byte number. If the remainder value is not 0, the rounded value plus one is used as the offset byte number.

[0076] S230, determining the redundant digits in the target byte that do not need to be displayed in the first screen dot matrix according to the preset number of shifted digits, the previous first displayed digit, and the previous target byte.

[0077] In the embodiment of the present application, if the scanning display direction of the screen is opposite to the periodic moving direction of the display data, the excess number of bits in the target byte that do not need to be displayed in the screen dot matrix is ​​determined according to the preset number of moving bits, the previous first display bit number and the previous target byte, including:

[0078] The sum of the preset shifted digits and the last excess digits is modulo the single-byte data digits to obtain the excess digits; wherein the last excess digit is the last first displayed digit minus one;

[0079] If the scanning display direction of the screen is the same as the periodic moving direction of the display data, then the excess digits in the target byte that do not need to be displayed in the screen dot matrix are determined according to the preset moving digit number, the previous first display digit number and the previous target byte, including:

[0080] If the preset shift bit number is greater than the previous excess bit number, the difference between the preset shift bit number and the previous excess bit number is modulo the single-byte data bit number to obtain the display data bit;

[0081] Removing the display data bits from the single-byte data bit number to obtain the excess bit number;

[0082] Otherwise, the difference between the previous number of excess bits and the preset number of shift bits is used as the number of excess bits.

[0083] Exemplarily, if the scanning and displaying direction of the screen is opposite to the periodic moving direction of the display data, the preset moving bit number is added to the previous excess bit number to determine which data bit the data bit displayed in the first screen dot matrix in the current scanning cycle is relative to the first data bit in the previous target byte. On this basis, the entire number of bytes included is removed, that is, the data bit displayed in the first screen dot matrix in the current scanning cycle is which data bit in the target byte, and then the excess bit number that does not need to be displayed in the target byte is determined. The calculation method is to add the preset moving bit number and the previous excess bit number, modulo the single-byte data bit number, to obtain the excess bit number. For example, assuming that the preset moving bit number is n, the previous first display bit number is m, and the previous excess bit number is m-1, then the excess bit number is (m-1+n)%8.

[0084] If the scanning display direction of the screen is the same as the periodic moving direction of the display data, the preset moving bit number is compared with the size of the previous excess bit number. If the preset moving bit number is less than or equal to the previous excess bit number, it means that the previous excess bit number in the previous target byte can still meet the requirement of the preset moving bit number for data movement. Therefore, the difference between the previous excess bit number and the preset moving bit number is directly used as the excess bit number, that is, m-1-n. If the preset moving bit number is greater than the previous excess bit number, it means that the previous excess bit number in the previous target byte cannot meet the requirement of the preset moving bit number for data movement. Therefore, it is necessary to determine how many data bits are needed for data movement in addition to the previous excess bit number in the previous target byte. The difference between the preset moving bit number and the previous excess bit number is modulo the single-byte data bit number to obtain the display data bit, that is, the data bit that needs to be displayed in the target byte. The display data bit is removed from the single-byte data bit number to obtain the excess bit number. For example, if n is less than or equal to m, mn is used as the excess bit number. If n is greater than m, 8-(nm)%8 is used as the excess bit number.

[0085] S240. Starting from the target byte, read a preset number of bytes of data to be displayed from the storage area; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dots plus one; the number of scanning dots is the number of screen dots of the scanning row or scanning column in the current scanning cycle.

[0086] S250, determining a target number of bits according to the number of scanning dot matrixes and the excess number of bits, and sending the target number of bits of data to be displayed to the screen for shift display starting from the first data bit of the target byte.

[0087] For example, assume that the last first display digit is m, the last extra digit is m-1, the preset shift digit is n, the last target byte is X, and the number of scanned dots is W. If the scanning display direction of the screen is opposite to the periodic movement direction of the display data, the offset byte number is The target byte is From the storage area Byte 1 is the first byte in the storage area. At least (W / 8+1) bytes of data to be displayed are read. The number of excess bits is (m-1+n)%8. Starting from the first data bit of the (W / 8+1) bytes of data to be displayed, (W+(m-1+n)%8) data bits are sent to the screen for display. If the scanning display direction of the screen is the same as the periodic movement direction of the display data, and n≤m, the number of offset bytes is 0, the target byte is X, and at least (W / 8+1) bytes of data to be displayed are read from the Xth byte in the storage area. The number of excess bits is m-1-n. Starting from the first data bit of the (W / 8+1) bytes of data to be displayed, (W+(m-1-n)) data bits are sent to the screen for display. If n>m, the number of offset bytes is The target byte is from At least (W / 8+1) bytes of data to be displayed are read starting from the byte. The excess bits are 8-(nm)%8, and starting from the first data bit of the (W / 8+1) bytes of data to be displayed, (W+8-(nm)%8) data bits are sent to the screen for display.

[0088] The embodiment of the present application provides a screen display method, which determines the number of offset bytes according to the preset number of shifted bits and the last first number of displayed bits; determines the target byte of the current scanning cycle according to the last target byte and the number of offset bytes. The first screen dot matrix is ​​the screen dot matrix scanned first in the current scanning cycle; starting from the target byte, the preset number of bytes of data to be displayed is read from the storage area; the target number of bits is determined according to the number of scanned dot matrices and the extra bits, and starting from the first data bit of the target byte, the target number of bits of data in the data to be displayed is sent to the screen for shift display, thereby determining the target byte and the extra bits according to the number of offset bytes, and realizing the shift display of data and the display of data starting from any data bit by means of the principle of the shift chip without the need for the processor to perform a large amount of processing and calculation.

[0089] Embodiment 3

[0090] Fig.11 This is a flow chart of a screen display method provided in the second embodiment of the present application. The present embodiment is optimized based on the above embodiment. For solutions not described in detail in the present embodiment, please refer to the above embodiment. Fig.11 As shown, the method of the embodiment of the present application specifically includes the following steps:

[0091] S310, determining the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess bits in the target byte that do not need to be displayed in the first screen dot matrix, based on the preset number of shifted bits, the previous first displayed bit number, and the previous target byte.

[0092] Among them, the preset number of moving bits is the number of dots moved by the screen display data in the current scanning cycle relative to the previous scanning cycle; the previous first display bit number is the data bit displayed in the first screen dot matrix in the previous scanning cycle; the previous target byte is the target byte in the previous scanning cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scanning cycle.

[0093] S320, starting from the target byte, read a preset number of bytes of data to be displayed from the storage area; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dots plus one; the number of scanning dots is the number of screen dots of the scanning row or scanning column in the current scanning cycle.

[0094] S330, determining a target number of bits according to the number of scanning dot arrays and the number of excess bits.

[0095] S340 , sending the data to be displayed to the shift chip bit by bit starting from the first data bit of the target byte according to the clock signal.

[0096] For example, Figure 8 The shift chip in the device receives one clock signal each time, and transmits one bit of data from the Data terminal to the shift chip. According to the clock signal, the data to be displayed is sent to the shift chip bit by bit.

[0097] S350: If the number of the clock signals reaches a preset number, triggering the shift chip through a latch signal to send the data to be displayed to the screen for display; wherein the preset number is determined according to the target number of bits.

[0098] The preset number is the target number of bits. The clock signal is counted by the timer. If the clock signal reaches the preset number, it means that the data sent to the shift chip has reached the target number of bits. At this time, a latch signal is generated to trigger the shift chip to send the data to be displayed to the screen for display. The latch signal can be a pulse signal, which can trigger the shift chip to send the data to the screen for display. Assume Figure 8 The pin R1-32 ​​of the shift chip is connected to the leftmost column of the screen dot matrix, and the pin R1-31 is connected to the first column on the left of the screen dot matrix. Similarly, the pin R1-1 is connected to the rightmost column of the screen dot matrix. Then the data of pin R1-32 ​​is displayed in the leftmost column of the screen dot matrix, and the data of pin R1-1 is displayed in the rightmost column of the screen dot matrix. After the target number of bits of data is transmitted to the shift chip, the first transmitted extra bits of data to be displayed overflow, and the pin R1-32 ​​is the extra bit of the data to be displayed plus one data bit, which is displayed in the leftmost column of the screen dot matrix, so that the screen dot matrix displays the data from the extra bit of the target byte plus one data bit, realizing the display of data from the internal data bit of the byte.

[0099] S360, continue to send the remaining data to be displayed to the shift chip bit by bit according to the clock signal until all the data to be displayed are sent to the shift chip.

[0100] Exemplarily, the data to be displayed is at least the number of bytes corresponding to the number of scanning dot arrays plus one byte, the number of data bits is the number of scanning dot arrays plus eight, and the number of data bits sent to the screen for display is the target number of bits, that is, the number of scanning dot arrays plus the number of excess bits, the number of excess bits is less than eight, and in fact the target number of bits is less than the total number of data bits of the data to be displayed. Therefore, after the target number of bits of data in the data to be displayed is sent to the screen for display, there are still eight data bits minus the number of excess bits in the data to be displayed as subsequent redundant bits. In the embodiment of the present application, the shift chip is triggered by the latch signal to send display data to the screen, that is, when a pulse is given, the shift chip sends display data to the screen. If there is no signal, that is, before and after the pulse is generated, the shift chip only receives data and shifts, and does not send data to the screen for display. In the embodiment of the present application, when the number of clock signals reaches a preset number, after the latch signal is generated to trigger the shift chip to send display data to the screen, the shift chip continues to receive subsequent redundant signals and shifts, and will not send subsequent redundant signals to the screen for display until all subsequent redundant signals are received, and the data to be displayed in the next scanning cycle is received. In order to improve data transmission and display efficiency, subsequent redundant data should be reduced as much as possible and the transmission time of subsequent redundant data should be reduced. Therefore, the target number of bits can be determined as the number of bytes corresponding to the number of scanning dots plus one, so that the subsequent redundant data is kept within eight bits. This not only meets the requirements of display data shifting and displaying data from any data bit of the target byte, but also reduces the amount of subsequent redundant data and improves data transmission and display efficiency.

[0101] An embodiment of the present application provides a screen display method, which sends data to be displayed to a shift chip bit by bit starting from the first data bit of the target byte according to a clock signal; if the number of the clock signals reaches a preset number, the shift chip is triggered by a latch signal to send the data to be displayed to the screen for display; wherein the preset number is determined according to the target number of bits; the remaining data to be displayed continues to be sent to the shift chip bit by bit according to the clock signal until all the data to be displayed are sent to the shift chip, and the excess bits at the front of the data to be displayed are shifted out by the shift chip, thereby realizing display of data starting from any data bit, and shifting out subsequent redundant data bits by the shift chip without sending them to the screen for display, thereby realizing a normal data shifting display effect.

[0102] Embodiment 4

[0103] Fig.12This is a schematic diagram of the structure of a screen display device provided in the fourth embodiment of the present application. The device can execute the screen display method provided in any embodiment of the present application and has the corresponding functional modules and beneficial effects of the execution method. Fig.12 As shown, the device comprises:

[0104] The reading information determination module 410 is used to determine the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess bits in the target byte that do not need to be displayed in the first screen dot matrix according to the preset number of shifted bits, the last first displayed bit number and the last target byte;

[0105] The preset number of shifted bits is the number of dots shifted by the screen display data in the current scan cycle relative to the previous scan cycle; the previous first display bit is the data bit displayed in the first screen dot matrix in the previous scan cycle; the previous target byte is the target byte in the previous scan cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scan cycle;

[0106] The reading module 420 is used to read a preset number of bytes of data to be displayed from the storage area starting from the target byte; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrixes plus one; the number of scanning dot matrixes is the number of screen dot matrixes of scanning rows or scanning columns in the current scanning cycle;

[0107] The display sending module 430 is used to determine the target number of bits according to the number of scanning dot matrixes and the excess number of bits, and send the target number of bits of data in the data to be displayed to the screen for shift display starting from the first data bit of the target byte.

[0108] In the embodiment of the present application, the read information determination module 410 includes:

[0109] An offset byte number determination unit, used to determine the offset byte number according to the preset shift bit number and the previous first display bit number;

[0110] The target byte determination unit is used to determine the target byte of the current scanning cycle according to the previous target byte and the offset byte number.

[0111] In the embodiment of the present application, if the scanning display direction of the screen is opposite to the periodic moving direction of the display data, the offset byte number determination unit is specifically used to:

[0112] The sum of the preset shifting digits and the last first displayed digit is divided by the single-byte data digits and rounded to obtain the offset byte number;

[0113] Accordingly, the target byte determination unit is specifically used for:

[0114] The sum of the previous target byte and the offset byte number is used as the target byte of the current scanning cycle.

[0115] In the embodiment of the present application, if the scanning display direction of the screen is the same as the periodic moving direction of the display data, the offset byte number determination unit is specifically used to:

[0116] If the preset shifting digit number is greater than the last first displayed digit number, the offset byte number is determined according to the difference between the preset shifting digit number and the last first displayed digit number divided by the number of single-byte data digits;

[0117] Otherwise, the offset byte number is determined to be zero;

[0118] Accordingly, the target byte determination unit is specifically used for:

[0119] The difference between the previous target byte and the offset byte number is used as the target byte of the current scanning cycle.

[0120] In the embodiment of the present application, the offset byte number determination unit is specifically used to:

[0121] Divide the difference between the preset number of shifted bits and the last first displayed number of bits by the number of single-byte data bits to obtain an integer value and a remainder value;

[0122] If the remainder value is zero, the rounded value is used as the offset byte number;

[0123] Otherwise, the rounded value is increased by 1 as the offset byte number.

[0124] In the embodiment of the present application, if the scanning display direction of the screen is opposite to the periodic moving direction of the display data, the reading information determination module 410 includes:

[0125] The excess digit determination unit is used to obtain the excess digit by taking the sum of the preset shift digit and the last excess digit modulo the number of single-byte data digits; wherein the last excess digit is the last first displayed digit minus one;

[0126] If the scanning display direction of the screen is the same as the periodic moving direction of the display data, the reading information determination module 410 includes:

[0127] A display data bit determination unit, configured to obtain the display data bit by taking the difference between the preset shift bit number and the previous excess bit number and modulo the single-byte data bit number if the preset shift bit number is greater than the previous excess bit number;

[0128] A first digit determination unit is used to remove the display data digits from the single-byte data digits to obtain the excess digits;

[0129] The second digit determination unit is used for otherwise taking the difference between the previous number of excess digits and the preset number of shift digits as the excess digits.

[0130] In the embodiment of the present application, the display module 430 includes:

[0131] A to-be-displayed data determination unit, configured to send the to-be-displayed data to the shift chip bit by bit starting from the first data bit of the target byte according to a clock signal;

[0132] A display unit, configured to trigger the shift chip to send the data to be displayed to the screen for display through a latch signal if the number of the clock signals reaches a preset number; wherein the preset number is determined according to the target number of bits;

[0133] The shift unit is used to continue to send the remaining data to be displayed to the shift chip bit by bit according to the clock signal until all the data to be displayed are sent to the shift chip.

[0134] A screen display device provided in an embodiment of the present application can execute a screen display method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.

[0135] Embodiment 5

[0136] Fig.13 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0137] like Fig.13As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0138] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0139] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a screen display method.

[0140] In some embodiments, the screen display method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the screen display method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the screen display method in any other appropriate manner (e.g., by means of firmware).

[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0142] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable screen display device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0143] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0144] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0145] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0146] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0147] 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 recorded in this application can be executed in parallel, sequentially or in different orders, as long as the information expected by the technical solution of this application can be achieved, and this document is not limited here.

[0148] The above specific implementations do not constitute a limitation on the protection scope of this application. 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 modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A screen display method, characterized in that: The method comprises: Determine the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess bits in the target byte that do not need to be displayed in the first screen dot matrix, according to the preset number of shifted bits, the last first displayed bit, and the last target byte; The preset number of shifted bits is the number of dots shifted by the screen display data in the current scan cycle relative to the previous scan cycle; the previous first display bit is the data bit displayed in the first screen dot matrix in the previous scan cycle; the previous target byte is the target byte in the previous scan cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scan cycle; Starting from the target byte, a preset number of bytes of data to be displayed is read from the storage area; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrixes plus one; the number of scanning dot matrixes is the number of screen dot matrixes of scanning rows or scanning columns in the current scanning cycle; The target number of bits is determined according to the number of scanning dot matrixes and the excess number of bits, and starting from the first data bit of the target byte, the target number of bits of data in the data to be displayed is sent to the screen for shift display.

2. The method according to claim 1, characterized in that According to the preset number of shift digits, the last first displayed digit, and the last target byte, the target byte of the data bit to be displayed in the first screen dot matrix in the current scanning cycle is determined, including: Determine the number of offset bytes according to the preset number of shift bits and the last first displayed number of bits; The target byte of the current scanning cycle is determined according to the previous target byte and the offset byte number.

3. The method according to claim 1, characterized in that: If the scanning display direction of the screen is opposite to the periodic moving direction of the display data, the offset byte number is determined according to the preset moving bit number and the previous first display bit number, including: The sum of the preset shift digits and the last first displayed digit is divided by the single-byte data digits and rounded to obtain the offset byte number; Accordingly, determining the target byte of the current scanning cycle according to the previous target byte and the offset byte number includes: The sum of the previous target byte and the offset byte number is used as the target byte of the current scanning cycle.

4. The method according to claim 1, characterized in that: If the scanning display direction of the screen is the same as the periodic moving direction of the display data, the offset byte number is determined according to the preset moving bit number and the previous first display bit number, including: If the preset shifting digit number is greater than the last first displayed digit number, the offset byte number is determined according to the difference between the preset shifting digit number and the last first displayed digit number divided by the number of single-byte data digits; Otherwise, the offset byte number is determined to be zero; Accordingly, determining the target byte of the current scanning cycle according to the previous target byte and the offset byte number includes: The difference between the previous target byte and the offset byte number is used as the target byte of the current scanning cycle.

5. The method according to claim 4, characterized in that Determining the number of offset bytes according to the difference between the preset number of shifted bits and the last first displayed number of bits divided by the number of single-byte data bits includes: Divide the difference between the preset number of shifted bits and the last first displayed number of bits by the number of single-byte data bits to obtain an integer value and a remainder value; If the remainder value is zero, the rounded value is used as the offset byte number; Otherwise, the rounded value is increased by 1 as the offset byte number.

6. The method according to claim 1, characterized in that If the scanning display direction of the screen is opposite to the periodic moving direction of the display data, then the redundant bits in the target byte that do not need to be displayed in the screen dot matrix are determined according to the preset moving bit number, the previous first display bit number and the previous target byte, including: The sum of the preset shifted digits and the last excess digits is modulo the single-byte data digits to obtain the excess digits; wherein the last excess digit is the last first displayed digit minus one; If the scanning display direction of the screen is the same as the periodic moving direction of the display data, then the excess digits in the target byte that do not need to be displayed in the screen dot matrix are determined according to the preset moving digit number, the previous first display digit number and the previous target byte, including: If the preset shift bit number is greater than the previous excess bit number, the difference between the preset shift bit number and the previous excess bit number is modulo the single-byte data bit number to obtain the display data bit; Removing the display data bits from the single-byte data bit number to obtain the excess bit number; Otherwise, the difference between the previous number of excess bits and the preset number of shift bits is used as the number of excess bits.

7. The method according to claim 1, characterized in that Starting from the first data bit of the target byte, sending the target number of data bits in the data to be displayed to the screen for shift display, including: According to the clock signal, starting from the first data bit of the target byte, the data to be displayed is sent to the shift chip bit by bit; If the number of the clock signals reaches a preset number, the shift chip is triggered by a latch signal to send the data to be displayed to the screen for display; wherein the preset number is determined according to the target number of bits; The remaining data to be displayed continues to be sent to the shift chip bit by bit according to the clock signal until all the data to be displayed are sent to the shift chip.

8. A screen display device, characterized in that: The device comprises: The reading information determination module is used to determine the target byte where the data bits to be displayed in the first screen dot matrix in the current scanning cycle are located, and the excess digits in the target byte that do not need to be displayed in the first screen dot matrix according to the preset number of moving digits, the last first displayed digit and the last target byte; The preset number of shifted bits is the number of dots shifted by the screen display data in the current scan cycle relative to the previous scan cycle; the previous first display bit is the data bit displayed in the first screen dot matrix in the previous scan cycle; the previous target byte is the target byte in the previous scan cycle; the first screen dot matrix is ​​the screen dot matrix scanned first in the current scan cycle; A reading module, used for reading a preset number of bytes of data to be displayed from the storage area starting from the target byte; wherein the preset number of bytes is at least the number of bytes corresponding to the number of scanning dot matrixes plus one; the number of scanning dot matrixes is the number of screen dot matrixes of scanning rows or scanning columns in the current scanning cycle; The display sending module is used to determine the target number of bits according to the number of scanning dot matrixes and the excess number of bits, and starting from the first data bit of the target byte, send the data of the target number of bits in the data to be displayed to the screen for shift display.

9. An electronic device, characterized in that: The device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the screen display method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the screen display method according to any one of claims 1 to 7 when executed.