CN106157866A - The display drive method of electronic atomization device midpoint matrix display and device - Google Patents

The display drive method of electronic atomization device midpoint matrix display and device Download PDF

Info

Publication number
CN106157866A
CN106157866A CN201610405509.3A CN201610405509A CN106157866A CN 106157866 A CN106157866 A CN 106157866A CN 201610405509 A CN201610405509 A CN 201610405509A CN 106157866 A CN106157866 A CN 106157866A
Authority
CN
China
Prior art keywords
content
displayed
data
display
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610405509.3A
Other languages
Chinese (zh)
Other versions
CN106157866B (en
Inventor
姚浩锋
陈磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Grand Orient Technology (shenzhen) Co Ltd
Hengsen International Group Ltd
Shenzhen Hangsen Star Technology Co Ltd
Original Assignee
Grand Orient Technology (shenzhen) Co Ltd
Hengsen International Group Ltd
Shenzhen Hangsen Star Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Grand Orient Technology (shenzhen) Co Ltd, Hengsen International Group Ltd, Shenzhen Hangsen Star Technology Co Ltd filed Critical Grand Orient Technology (shenzhen) Co Ltd
Priority to CN201610405509.3A priority Critical patent/CN106157866B/en
Publication of CN106157866A publication Critical patent/CN106157866A/en
Application granted granted Critical
Publication of CN106157866B publication Critical patent/CN106157866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/395Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The present invention relates to display drive method and the device of a kind of electronic atomization device midpoint matrix display, described method includes: obtain content to be displayed, judge that content to be displayed is the most identical with present displayed content, when content to be displayed is different from present displayed content, obtain the data of content to be displayed, starting coordinate position and pixel-matrix size, content to be displayed destination display area in the display area is determined according to starting coordinate position and pixel-matrix size, the valid data in the data of content to be displayed are extracted according to pixel-matrix size, the corresponding data in buffer area is determined according to destination display area, corresponding data is replaced with valid data.Use the method and device, can conveniently revise buffer area, improve work efficiency.

Description

The display drive method of electronic atomization device midpoint matrix display and device
Technical field
The present invention relates to the Display Technique of display, particularly relate to a kind of electronic atomization device midpoint matrix display Display drive method and device.
Background technology
Dot matrix type display includes the polytypes such as liquid crystal display, light-emitting diode display and OLED display, and dot matrix type shows Widely, such as electronic cigarette display generally uses OLED display in the application of device, will system by dot matrix type OLED display The information such as the electricity of system, voltage, power show on screen.One video memory of dot matrix type display interior is used for iatron The data of display content, update the display content on the most renewable screen of data in video memory.The size of video memory capacity and screen Resolution is relevant, corresponding 8 pixels of each byte of video memory, and each represents a pixel, the total bit in video memory with The number of total pixel of screen is identical, and the pixel one_to_one corresponding of each position and each position of screen.Screen shows Show that various picture and word are exactly by position 0 each in video memory or to put 1 and realize going out or bright of corresponding pixel points.
The pixel-matrix of indicator screen is generally divided into multipage, and internal video memory is also divided into multiple memory block by page Territory, the data of display content are stored in the memory area of corresponding page in video memory by place page.Dot matrix type display is generally by list Sheet machine controls to drive display, has one section of buffer area equal with video memory amount of capacity in display in single-chip microcomputer in relief area, Buffer area is also pressed page subregion and is arranged and consistent with video memory.During the display content of display to be revised, first amendment buffer area Then the data of buffer area are write video memory and can show update content on indicator screen by data.General, on display screen During display picture, need, according to picture position in screen, picture to be cut into by page the picture fragment of not same page, and Write after the corresponding data in data modification buffer area according to every page of picture fragment in the video memory of display.But once picture Change, even the least change, be required for again by page, picture being carried out every page of storage in cutting, and buffer area The data in region are required for remodifying.
Therefore, it is complicated loaded down with trivial details and time-consuming that the current method driving display update content revises mode, inefficiency.
Summary of the invention
Based on this, it is necessary to for above-mentioned technical problem, it is provided that a kind of revise electronic fog makeup simple, that work efficiency is high Put display drive method and the device of midpoint matrix display.
The display drive method of a kind of electronic atomization device midpoint matrix display, said method comprising the steps of:
Obtain content to be displayed;
Judge that content to be displayed is the most identical with present displayed content;
When content to be displayed is different from present displayed content, obtain the data of content to be displayed, starting coordinate position and Pixel-matrix size;
Content to be displayed destination display area in the display area is determined according to starting coordinate position and pixel-matrix size;
The valid data in the data of content to be displayed are extracted according to pixel-matrix size;
Determine the corresponding data in buffer area according to destination display area, corresponding data is replaced with valid data;
The data updated in buffer area are write the video memory of viewing area, drives display content to be displayed.
Wherein in an embodiment, include before the step of described acquisition content to be displayed:
Pixel count according to viewing area calculates the memory capacity of viewing area, arranges one section of continuous print and storage on relief area The buffer area that amount of capacity is equal;
The video memory data of viewing area present displayed content are write in buffer area.
Wherein in an embodiment, the data of content to be displayed are a two-dimensional array, each element of two-dimensional array It is a byte, the row of position in row and column in a pixel, and two-dimensional array of the corresponding content to be displayed of each of byte Cloth is corresponding with the arrangement of the pixels across of content to be displayed point and longitudinal pixel;Extract to be shown interior according to pixel-matrix size The step of the valid data in the data held includes: determine corresponding content to be displayed picture in two-dimensional array according to pixel-matrix size The significance bit of vegetarian refreshments arrangement, and to extract all significance bits be valid data.
Wherein in an embodiment, wrap determine the step of corresponding data in buffer area according to destination display area after Include: judge that valid data are the most consistent with corresponding data;If inconsistent, corresponding data is replaced with valid data;If consistent, continue The next content to be displayed of continuous acquisition.
Wherein in an embodiment, it is judged that the step that content to be displayed is the most identical with present displayed content includes:
Obtain present displayed content mark number and content to be displayed identification number, it is judged that two identification numbers are the most consistent, when two When individual mark number is consistent, present displayed content is identical with content to be displayed.
A kind of display drive apparatus of electronic atomization device midpoint matrix display, described display drive apparatus includes:
Content obtaining module, is used for obtaining content to be displayed;
Content judgment module, is used for judging that content to be displayed is the most identical with present displayed content;
Data obtaining module, for when content to be displayed is different from present displayed content, obtains the number of content to be displayed According to, starting coordinate position and pixel-matrix size;
According to starting coordinate position and pixel-matrix size, area determination module, for determining that content to be displayed is in viewing area In destination display area;
Data extraction module, the valid data in the data extracting content to be displayed according to pixel-matrix size;
Buffer update module, determines the corresponding data in buffer area, is replaced with by corresponding data according to destination display area Valid data;
Drive display module, the video memory of the data write viewing area for updating in buffer area, drive display to be shown Content.
Wherein in an embodiment, display drive apparatus also includes:
Buffer setting module, calculates the memory capacity of viewing area, sets on relief area for the pixel count according to viewing area Put one section of continuous print and the equal-sized buffer area of memory capacity;
Caching writing module, for writing the video memory data of viewing area present displayed content in buffer area.
Wherein in an embodiment, the data of content to be displayed are a two-dimensional array, each element of two-dimensional array It is a byte, the row of position in row and column in a pixel, and two-dimensional array of the corresponding content to be displayed of each of byte Cloth is corresponding with the arrangement of the pixels across of content to be displayed point and longitudinal pixel;Data extraction module is additionally operable to according to pixel Battle array size determines in two-dimensional array the significance bit of corresponding content to be displayed pixel arrangement, and to extract all significance bits be significant figure According to.
Wherein in an embodiment, display drive apparatus also includes data judge module, be used for judging valid data with Corresponding data is the most consistent;If inconsistent, corresponding data is replaced with valid data;If consistent, continue to obtain the next one and wait to show Show content.
Wherein in an embodiment, content obtaining module be additionally operable to obtain present displayed content mark number and to be shown in Holding identification number, content judgment module is additionally operable to judge that two identification numbers are the most consistent, when two mark numbers are consistent, currently displaying Content is identical with content to be displayed.
The display drive method of above-mentioned electronic atomization device midpoint matrix display and device, new to be shown when getting During content, data entirety corresponding with content to be displayed destination display area in buffer area is replaced with the number of content to be displayed According to, it is achieved the renewal of buffer area data, the video memory of the data write dot matrix type display of the buffer area after updating can drive Dynamic dot matrix type display display content to be displayed, it is not necessary to content to be displayed is carried out fragmentation process, revises without subregion Buffer area data, the amendment of buffer area data is simple to operate, substantially increases the work efficiency that the display of dot matrix type display drives.
Accompanying drawing explanation
Fig. 1 is the display drive method flow chart of electronic atomization device midpoint matrix display in an embodiment;
Fig. 2 is the display drive method flow chart of electronic atomization device midpoint matrix display in another embodiment;
Fig. 3 is the display drive apparatus structural representation of electronic atomization device midpoint matrix display in an embodiment;
Fig. 4 is the display drive apparatus structural representation of electronic atomization device midpoint matrix display in another embodiment Figure.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right The present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, not For limiting the present invention.
It should be noted that in the present invention, the step of related to viewing area is all entered as a example by the viewing area of 128 × 32 Row illustrates, but the actual size of viewing area is not limited to this.
In one embodiment, as shown in Figure 1, it is provided that the display of a kind of electronic atomization device midpoint matrix display is driven Dynamic method, the present embodiment is applied to single-chip microcomputer in this way and illustrates.The method specifically includes following steps:
Step 102: obtain content to be displayed.
Content to be displayed is showing on the viewing area of electronic atomization device midpoint matrix display of inputting of user Content, content to be displayed can be picture to be shown or word, is the pixel-matrix being made up of multiple pixels, the number of pixel Measuring relevant with the resolution of content to be displayed, the resolution of content to be displayed is consistent with the resolution of dot matrix type display.Monolithic After machine can input new content to be displayed user being detected, obtain the content to be displayed of user's input.
Step 104: judge that described content to be displayed is the most identical with present displayed content.
Present displayed content is the content that the viewing area of dot matrix type display is currently displaying, and single-chip microcomputer can obtain from display Present displayed content.User inputs content to be displayed, after single-chip microcomputer obtains the content to be displayed of user's input, by content to be displayed Compare with present displayed content, it is judged that whether the two is identical content.If identical, perform step 102: obtain to be shown interior Hold;If it is different, enter step 106.
Step 106: when content to be displayed is different from present displayed content, obtains the data of content to be displayed, initial seat Cursor position and pixel-matrix size.
When judging that content to be displayed is different from present displayed content, single-chip microcomputer obtains the letter that can represent content to be displayed Breath, information includes the data of content to be displayed, starting coordinate position and pixel-matrix size.The data of content to be displayed are with word Joint form stores, and the position one_to_one corresponding in byte is in constituting the pixel of content to be displayed, and bit data is 0 or is 1 to represent and wait to show Show going out or bright of corresponding pixel points in content.Each byte is 8, but the quantity of the pixel of content to be displayed is not necessarily The multiple of 8, therefore, also deposits in content to be shown and does not has the invalid bit of corresponding relation with content to be displayed pixel.
Starting coordinate position is the position of the origin coordinates point that content to be displayed shows in the viewing area of dot matrix type display Put.By the position of each pixel of viewing area with (x, y) coordinate representation, row-coordinate x represents, row coordinate y represents.128 The viewing area of × 32 represents that viewing area has 32 row, and often row has 128 pixels, and in actual application, viewing area is by longitudinal direction The mode of page 4 (8 points of every page of longitudinal direction) is combined into the dot matrix number viewing area of 128 × 32, and at the video memory of dot matrix type display In be also that the dot array data of every page, viewing area is carried out Fragmentation.But, in the present embodiment, with coordinates logo viewing area The coordinate paging of pixel is identified during the position of each pixel, but whole viewing area is whole as one The coordinate in body, the i.e. viewing area upper left corner is (0,0), and the coordinate of left and right inferior horn is (31,127).Starting coordinate position represents to be treated The coordinate of the pixel in the upper left corner of display content correspondence in the display area.
Pixel-matrix size represents the line number of the pixel-matrix of content to be displayed, columns, and permissible by pixel-matrix size Calculate total pixel number.Such as, the pixel-matrix size of content to be displayed is 3 × 19, represents that content to be displayed has 19 OK, often row has 3 pixels, has 19 × 3 pixels.
Step 108: determine content to be displayed target in the display area according to starting coordinate position and pixel-matrix size Viewing area.
The pixel that content to be displayed shows in the display area is may determine that according to starting coordinate position and pixel-matrix size The pixel coverage of point, i.e. content to be displayed destination display area in the display area.Such as, the origin coordinates position of content to be displayed Being set to (6,11), pixel-matrix size is 3 × 19, thus can calculate content to be displayed last cell in the display area Coordinate is (24,13), and destination display area is the interval in viewing area from (6,11) to (24,13).
Step 110: extract the valid data in the data of content to be displayed according to pixel-matrix size.
The line number of the pixel-matrix of content to be displayed, columns can be obtained according to pixel-matrix size, and calculate total Pixel number.Therefore single-chip microcomputer can be arranged with pixel-matrix row and column according to the arrangement mode of the data byte of content to be displayed Corresponding relation and pixel-matrix size, determine and extract the position representing content to be displayed pixel in the data of content to be displayed Valid data, remove invalid bit data.
Step 112: determine the corresponding data in buffer area according to destination display area, corresponding data is replaced with significant figure According to.
In single-chip microcomputer buffer area, storage is the data of the Current Content of display, the number in single-chip microcomputer buffer area in viewing area According to being also to store with bytewise, pixel in the byte arrangement mode of the data in single-chip microcomputer buffer area and display viewing area Point vertical and horizontal arrangement there is corresponding relation, the position one_to_one corresponding in byte in the pixel of viewing area, bit data be 0 or It is the going out or bright of correspondence position pixel in 1 expression viewing area.Therefore can be according to pixels all in destination display area Position determines that all of bit data corresponding in the data of buffer area is corresponding data.Data word in single-chip microcomputer buffer area The arrangement form of joint is consistent with the arrangement form of the data byte of content to be displayed, by the correspondence determined in single-chip microcomputer buffer area Data replace with the valid data of content to be displayed.
Step 114: the data updated in buffer area write the video memory of viewing area, drives display content to be displayed.
After corresponding data replaces with the valid data of content to be displayed, the data in single-chip microcomputer buffer area are updated, By in the video memory of the data write display viewing area updated in single-chip microcomputer buffer area, the display of dot matrix type display can be driven District's display content to be displayed.
When single-chip microcomputer gets content to be displayed and is judged as inconsistent with present displayed content, according to content to be displayed Information determine its destination display area in the display area, determine in buffer area corresponding significant figure according to destination display area According to, and its entirety is replaced with the data of content to be displayed, it is achieved the renewal of single-chip microcomputer buffer area data, the monolithic after updating The video memory of the data write dot matrix type display of machine buffer area can drive electronic atomization device midpoint matrix display to show Content to be displayed, the amendment of single-chip microcomputer buffer area data is simple to operate, substantially increases the work that the display of dot matrix type display drives Make efficiency.
In one embodiment, as in figure 2 it is shown, the display driving side of a kind of electronic atomization device midpoint matrix display Method, specifically includes:
Step 202: calculate the memory capacity of described viewing area according to the pixel count of viewing area, arrange one section on relief area Continuous print and the equal-sized buffer area of memory capacity.
The total pixel count in display viewing area is 128 × 32, calculates what viewing area needed according to the pixel count of viewing area Memory capacity is 128 × 32/8=512 byte, and the memory capacity that the video memory of dot matrix type display needs also is 512 bytes, The buffer area of single-chip microcomputer arranges one section of continuous print and buffer area equal-sized with memory capacity, the caching of 512 bytes For single-chip microcomputer, do not take too many space, the demand of most of main flow single-chip microcomputer can be met.
Step 204: the video memory data of viewing area present displayed content are write in buffer area.
After power-up initializing, display viewing area shows that main interface images, main interface images are present displayed content, display Store the data of the pixel of present displayed content on the video memory of device, the data in video memory are written to the buffer area of single-chip microcomputer In.
In one embodiment, the data of single-chip microcomputer buffer area preserve in the way of two-dimensional array.Display shows District be combined into by the mode of longitudinally page 4 (8 points of every page of longitudinal direction, horizontal 128 points) 128 × 32 dot matrix number viewing area, And also it is that the dot array data of every page, viewing area is carried out Fragmentation in the video memory of dot matrix type display, such as, corresponds to The viewing area of 128 × 32, can be set to 4 row, the array of 128 row by two-dimensional array, and each element is a byte, each Byte has 8.Therefore, each element, corresponding to longitudinally 8 points of viewing area, 128 arranges altogether, therefore, and the every a line of two-dimensional array The storage data of element correspondence viewing area one page, when in the video memory district needing to write the data in buffer area display, only Two-dimensional array need to be write line by line in video memory in the memory area of corresponding page.Stored by method high-order under longitudinal direction 8 Uppermost point in longitudinally 8 points of one group, the highest order correspondence viewing area of one byte of byte, i.e. two-dimensional array, lowest order pair Answer nethermost point in longitudinally 8 points of one group, viewing area.The number of single-chip microcomputer relief area is preserved by the way of two-dimensional array is set According to, the pixel of viewing area and the corresponding relation of buffer data can be determined clearly, facilitate pixel location and be easy to Buffer area data are called.It should be noted that the storage mode of the line number of two-dimensional array, columns and byte should in reality Specifically can arrange according to the dot matrix number horizontal, longitudinal of viewing area in, as long as conveniently in two-dimensional array in locating and displaying district The position of pixel, however it is not limited to the situation described in the present embodiment.
Step 206: obtain present displayed content mark number and content to be displayed identification number.
When single-chip microcomputer detects that user inputs content to be displayed, obtain present displayed content mark number and to be shown in The identification number held, identification number can uniquely identify display content, and identification number is identical shows that the pixel-matrix of two display contents is big Little, the numerical value of each corresponding pixel points is completely the same.
Step 208: judge that two identification numbers are the most consistent.
The mark number of present displayed content and the identification number of content to be displayed are compared and judges that two identification numbers are No unanimously when two identification numbers are consistent, showing that content to be displayed is identical with present displayed content, single-chip microcomputer continues to obtain next Individual content to be displayed mark number the mark number with present displayed content compare judgement;When two mark numbers are inconsistent, Show that content to be displayed is different from present displayed content, enter step 210.
Compare by obtaining mark number, can judge easily content to be displayed whether with present displayed content one Cause, it is not necessary to by comparing the two pixel number evidence or other information, method is simple.
Step 210: obtain the data of content to be displayed, starting coordinate position and pixel-matrix size.
When judging that content to be displayed is identical with present displayed content, single-chip microcomputer obtains the data of content to be displayed, initiates Coordinate position and pixel-matrix size.The data of content to be displayed are a two-dimensional array, and each element of two-dimensional array is one Individual byte, in a pixel, and two-dimensional array of each corresponding content to be displayed of byte in row and column the arrangement of position with The pixels across point of content to be displayed is corresponding with the arrangement of longitudinal pixel.Preserve by the way of with two-dimensional array to be shown in The data held, can be determined clearly the pixel of content to be displayed and the corresponding relation of data, facilitate pixel in data Location.
In one embodiment, the storage mode of content to be displayed two-dimensional array byte and two-dimemsional number in single-chip microcomputer buffer area The storage mode of group byte is consistent, it is simple to the data in the data of content to be displayed and buffer area are compared and replaced.
Step 212: determine content to be displayed target in the display area according to starting coordinate position and pixel-matrix size Viewing area.
The pixel correspondence in the display area in the upper left corner of content to be displayed is may determine that according to starting coordinate position Coordinate, is appreciated that the line number of the pixel-matrix of content to be displayed, columns according to pixel-matrix size.Thereby determine that to be shown interior Hold the pixel coverage of the pixel shown in the display area, i.e. content to be displayed destination display area in the display area.
Step 214: determine in two-dimensional array the effective of corresponding content to be displayed pixel arrangement according to pixel-matrix size Position, and to extract all significance bits be valid data.
Corresponding pixel, single-chip microcomputer can be positioned easily in the data of content to be displayed by two-dimensional array The line number of the pixel-matrix of content to be displayed, columns can be obtained according to pixel-matrix size, determine the data of content to be displayed In significance bit, and extract significance bit as valid data.Such as, the picture to be shown of 3 × 19 sizes is with 3 row 3 The two-dimensional array storage of row, because a column element of array is corresponding to the string longitudinal direction pixel of picture to be shown, has 3 words Joint has defined 24, and the string of picture is actual only has 19 points, therefore, has in each column element data in two-dimensional array 5 is invalid, if the data in two-dimensional array are directly replaced the data in single-chip microcomputer relief area, can cause display mistake By mistake, accordingly, it would be desirable to extract the significance bit valid data as content to be displayed.
Step 216: determine the corresponding data in buffer area according to destination display area.
The position of all pixels in target area, the two-dimemsional number of single-chip microcomputer buffer area is determined according to destination display area Group data can conveniently position the bit data corresponding with the pixel in viewing area, and is determined all by the position of all pixels Bit data is as corresponding data.
Step 218: judge that valid data are the most consistent with corresponding data.
The valid data of the content to be displayed extracted are compared with the corresponding data in single-chip microcomputer buffer area, it is judged that Valid data are the most consistent with corresponding data.If consistent, single-chip microcomputer continue to obtain next content to be displayed mark number and with work as The mark number of front display content compares judgement;If inconsistent, perform step 220: corresponding data is replaced with valid data.
Before valid data replace corresponding data, first two data are compared, for example, it is possible to pass through cyclic program Realization is compared, as long as the data of the corresponding position found in data are different, can terminate to compare, and holding time is little.But such as When really content to be displayed is consistent with the present displayed content of the destination display area in viewing area, delay if continuing amendment single-chip microcomputer Deposit the data in district, it is necessary to all bit data being replaced, holding time is long, and the display content in viewing area is not Change.Comparison step is set and saves modification time to a certain extent, improve work efficiency.
Step 220: corresponding data is replaced with valid data.
When valid data and corresponding data are inconsistent, corresponding data is replaced with valid data.Concrete, can will treat The bit data of the string of display content valid data longitudinally point is taken out, and covers the correspondence in the corresponding data in single-chip microcomputer buffer area The bit data of row, and carry out by column covering replacing.
Step 222: the data updated in buffer area write the video memory of viewing area, drives display content to be displayed.
After data in single-chip microcomputer buffer area are updated, the data updated in single-chip microcomputer buffer area write display is shown Show in the video memory in district, the viewing area display content to be displayed of dot matrix type display can be driven.
In the present embodiment, the pixel data in display viewing area is stored entirely in caching with the form of two-dimensional array Qu Zhong, content to be displayed also stores with the form of two-dimensional array, can facilitate viewing area, content to be displayed pixel in data In location.When content to be displayed changes, by changing in single-chip microcomputer buffer area the destination display area with content to be displayed The corresponding data in two-dimensional array, can realize the amendment of data in single-chip microcomputer buffer area, then by single-chip microcomputer buffer area Data write in the video memory storage of display correspondence page line by line, and viewing area can be driven to show content to be displayed.Without first treating Display content carries out fragmentation process by page, and in each page, location needs the data of amendment to modify again, makes loaded down with trivial details repairing Journey of correcting one's mistakes simply is talked about, and saves caching modification time, improves work efficiency.
As a example by a concrete application scenarios, the present embodiment is illustrated below.The picture of 3 × 19 sizes is shown The viewing area of the electronic atomization device midpoint matrix display of 128 × 32 sizes, the starting coordinate position of picture display position is (6,11).The present displayed content of viewing area is main interface images, and the two-dimensional array OLED_RAM [4] of single-chip microcomputer buffer area [128] pixel data of main interface images is stored in.Picture represents with a two-dimensional array, and two-dimensional array data are as follows:
Const unsigned char H19Point_W3_H19 [3] [3]=
{0x00,0x00,0x00,
0xE0,0xE0,0xE0,
0x01,0x01,0x01};
The two-dimensional array of single-chip microcomputer buffer area and picture is all with arrangement video data high-order under longitudinal direction 8, thus, logical Cross observation and learn that this picture is shown that the Filled Rectangle of 3 × 4 sizes.
After the input of this picture being detected, the mark number of mark number and present displayed content that single-chip microcomputer obtains this picture enters Row compares, it is judged that after inconsistent, single-chip microcomputer obtains the two-dimensional array data of this picture, starting coordinate position (6,11) and pixel Battle array size 3 × 19, is calculated and determined this picture target in viewing area according to starting coordinate position and pixel-matrix size and shows Region is the interval from (6,11) to (24,13), and the string of each row element in two-dimensional array data has had 3 bytes Define 24, may determine that picture is actual according to pixel-matrix size 3 × 19 and only have corresponding 19 bit data of 19 points, therefore, High 5 of each element in last column element in two-dimensional array is invalid, extracts low 19 of each column element and is Valid data.Then, in the two-dimensional array OLED_RAM [4] [128] of buffer area, determine that corresponding and (6,11) arrive (24,13) The corresponding data of pixel in interval, and being compared with valid data by this corresponding data, if in this picture and viewing area (6,11) are consistent to the display content in (24,13) region, then obtain next one display content, if inconsistent, then delayed by single-chip microcomputer Deposit the 6th to 24 significant figures replacing with extraction by column from the 11st longitudinal point data arranging the 13rd data arranged in district According to, material is thus formed new two-dimensional array OLED_RAM [4] [128], make the data in single-chip microcomputer buffer area be updated, will Data in two-dimensional array write in display video memory after the memory area of corresponding page line by line, and driving display is on viewing area The interval interior of (6,11) to (24,13) shows this picture.
In one embodiment, as shown in Figure 3, it is provided that the display of a kind of electronic atomization device midpoint matrix display is driven Dynamic device 300, this device includes: content obtaining module 303, content judgment module 304, and data obtaining module 306, region determines Module 308, data extraction module 310, buffer update module 312 and driving display module 314, wherein:
Content obtaining module 303, is used for obtaining content to be displayed;
Content judgment module 304, is used for judging that content to be displayed is the most identical with present displayed content;
Data obtaining module 306, for when content to be displayed is different from present displayed content, obtains content to be displayed Data, starting coordinate position and pixel-matrix size;
According to starting coordinate position and pixel-matrix size, area determination module 308, for determining that content to be displayed is aobvious Show the destination display area in district;
Data extraction module 310, the valid data in the data extracting content to be displayed according to pixel-matrix size;
Buffer update module 312, determines the corresponding data in buffer area according to destination display area, is replaced by corresponding data For valid data;
Driving display module 314, the video memory of the data write viewing area for updating in buffer area, driving shows to be waited to show Show content.
In one embodiment, the data of content to be displayed are a two-dimensional array, and each element of two-dimensional array is one Individual byte, in a pixel, and two-dimensional array of each corresponding content to be displayed of byte in row and column the arrangement of position with The pixels across point of content to be displayed is corresponding with the arrangement of longitudinal pixel;Data extraction module 310 is additionally operable to according to pixel Battle array size determines in two-dimensional array the significance bit of corresponding content to be displayed pixel arrangement, and to extract all significance bits be significant figure According to.
In one embodiment, content obtaining module 303 be additionally operable to obtain present displayed content mark number and to be shown in Holding identification number, content judgment module 304 is additionally operable to judge that two identification numbers are the most consistent, when two mark numbers are consistent, currently Display content is identical with content to be displayed.
In one embodiment, as shown in Figure 4, the display drive apparatus 300 of electronic atomization device midpoint matrix display Also include:
Buffer setting module 301, calculates the memory capacity of viewing area, on relief area for the pixel count according to viewing area One section of continuous print and the equal-sized buffer area of memory capacity are set;
Caching writing module 302, for writing the video memory data of viewing area present displayed content in buffer area.
In one embodiment, device 300 also includes:
Data judge module 311, is used for judging that valid data are the most consistent with corresponding data;If it is inconsistent, by correspondence number According to replacing with valid data;If consistent, continue to obtain next content to be displayed.
In the present embodiment, the content obtaining module of the display drive apparatus of electronic atomization device midpoint matrix display and Content judgment module gets content to be displayed when being judged as inconsistent with present displayed content, and area determination module shows according to waiting Showing that the information of content determines its destination display area in the display area, data extraction module is extracted slow according to destination display area Depositing valid data corresponding in district, its entirety is replaced with the data of content to be displayed by buffer update module, it is achieved single-chip microcomputer delays Deposit the renewal of district's data, in the video memory of the data write dot matrix type display of the buffer area after driving display module to update Drive electronic atomization device midpoint matrix display display content to be displayed, electronic atomization device midpoint matrix display buffer area The amendment of data is simple to operate, and work efficiency is high.
Each technical characteristic of embodiment described above can combine arbitrarily, for making description succinct, not to above-mentioned reality The all possible combination of each technical characteristic executed in example is all described, but, as long as the combination of these technical characteristics is not deposited In contradiction, all it is considered to be the scope that this specification is recorded.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but also Can not therefore be construed as limiting the scope of the patent.It should be pointed out that, come for those of ordinary skill in the art Saying, without departing from the inventive concept of the premise, it is also possible to make some deformation and improvement, these broadly fall into the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. the display drive method of an electronic atomization device midpoint matrix display, it is characterised in that comprise the steps:
Obtain content to be displayed;
Judge that described content to be displayed is the most identical with present displayed content;
When described content to be displayed is different from described present displayed content, obtain the data of described content to be displayed, initial seat Cursor position and pixel-matrix size;
Determine that described content to be displayed target in the display area shows according to described starting coordinate position and pixel-matrix size Region;
The valid data in the data of described content to be displayed are extracted according to described pixel-matrix size;
Determine the corresponding data in described buffer area according to described destination display area, described corresponding data is replaced with described in have Effect data;
The data updated in buffer area are write the video memory of described viewing area, drives and show described content to be displayed.
Method the most according to claim 1, it is characterised in that include before the step of described acquisition content to be displayed:
Pixel count according to described viewing area calculates the memory capacity of described viewing area, relief area is arranged one section of continuous print with The equal-sized buffer area of described memory capacity;
The video memory data of described viewing area present displayed content are write in described buffer area.
Method the most according to claim 1, it is characterised in that the data of described content to be displayed are a two-dimensional array, Each element of described two-dimensional array is a byte, a picture of each corresponding described content to be displayed of described byte The arrangement of position described in row and column and the pixels across point of described content to be displayed and longitudinal picture in element, and described two-dimensional array The arrangement of vegetarian refreshments is corresponding;Valid data in the described data extracting described content to be displayed according to described pixel-matrix size Step includes:
The effective of the arrangement of corresponding described content to be displayed pixel in described two-dimensional array is determined according to described pixel-matrix size Position, and to extract all described significance bits be valid data.
Method the most according to claim 1, it is characterised in that described determine described caching according to described destination display area Include after the step of the corresponding data in district:
Judge that described valid data are the most consistent with described corresponding data;If inconsistent, described corresponding data is replaced with described Valid data;If consistent, continue to obtain next content to be displayed.
Method the most according to claim 1, it is characterised in that judge that described content to be displayed is the most currently displaying with described The step that content is identical includes:
Obtain described present displayed content mark number and described content to be displayed identification number, it is judged that two identification numbers are the most consistent, When two mark numbers are consistent, described present displayed content is identical with described content to be displayed.
6. the display drive apparatus of an electronic atomization device midpoint matrix display, it is characterised in that described display drives dress Put and include: station location marker module, for determining the position coordinates of each pixel in viewing area;
Content obtaining module, is used for obtaining content to be displayed;
Content judgment module, is used for judging that described content to be displayed is the most identical with present displayed content;
Data obtaining module, for when described content to be displayed is different from described present displayed content, obtains described to be shown The data of content, starting coordinate position and pixel-matrix size;
According to described starting coordinate position and pixel-matrix size, area determination module, for determining that described content to be displayed is aobvious Show the destination display area in district;
Data extraction module, the significant figure in the data extracting described content to be displayed according to described pixel-matrix size According to;
Buffer update module, determines the corresponding data in described buffer area according to described destination display area, by described corresponding number According to replacing with described valid data;
Driving display module, the data for updating in buffer area write the video memory of described viewing area, drive and treat described in display Display content.
The display drive apparatus of electronic atomization device midpoint the most according to claim 6 matrix display, it is characterised in that Described display drive apparatus also includes:
Buffer setting module, calculates the memory capacity of described viewing area, in relief area for the pixel count according to described viewing area On one section of continuous print and the equal-sized buffer area of described memory capacity are set;
Caching writing module, for writing the video memory data of described viewing area present displayed content in described buffer area.
The display drive apparatus of electronic atomization device midpoint the most according to claim 6 matrix display, it is characterised in that The data of described content to be displayed are a two-dimensional array, and each element of described two-dimensional array is a byte, described byte A pixel of each corresponding described content to be displayed, and in described two-dimensional array the arrangement of position described in row and column with The pixels across point of described content to be displayed is corresponding with the arrangement of longitudinal pixel;Described data extraction module is additionally operable to according to institute State pixel-matrix size and determine the significance bit of corresponding described content to be displayed pixel arrangement in described two-dimensional array, and extract institute Having described significance bit is valid data.
The display drive apparatus of electronic atomization device midpoint the most according to claim 6 matrix display, it is characterised in that Described display drive apparatus also includes data judge module, is used for judging described valid data and described corresponding data whether Cause;If inconsistent, described corresponding data is replaced with described valid data;If consistent, continue to obtain next content to be displayed.
The display drive apparatus of electronic atomization device midpoint the most according to claim 6 matrix display, its feature exists In, described content obtaining module is additionally operable to obtain described present displayed content mark number and described content to be displayed identification number, institute State content judgment module to be additionally operable to judge that two identification numbers are the most consistent, when two mark numbers are consistent, described currently displaying interior Hold identical with described content to be displayed.
CN201610405509.3A 2016-06-08 2016-06-08 The display driving method and device of electronic atomization device midpoint matrix display Active CN106157866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610405509.3A CN106157866B (en) 2016-06-08 2016-06-08 The display driving method and device of electronic atomization device midpoint matrix display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610405509.3A CN106157866B (en) 2016-06-08 2016-06-08 The display driving method and device of electronic atomization device midpoint matrix display

Publications (2)

Publication Number Publication Date
CN106157866A true CN106157866A (en) 2016-11-23
CN106157866B CN106157866B (en) 2019-03-08

Family

ID=57352847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610405509.3A Active CN106157866B (en) 2016-06-08 2016-06-08 The display driving method and device of electronic atomization device midpoint matrix display

Country Status (1)

Country Link
CN (1) CN106157866B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109119048A (en) * 2018-09-19 2019-01-01 武汉华风电子工程有限公司 It is a kind of for be free of character library single-color dot matrix display screen character fast refresh display methods
CN110780834A (en) * 2019-10-31 2020-02-11 深圳云里物里科技股份有限公司 Method, system and device for locally updating picture of display equipment
CN113539193A (en) * 2020-04-22 2021-10-22 深圳市大富科技股份有限公司 Liquid crystal display control method and device and computer readable storage medium
CN113900746A (en) * 2021-09-06 2022-01-07 广东瑞德智能科技股份有限公司 Flexible display method and household appliance

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010160251A (en) * 2009-01-07 2010-07-22 Bridgestone Corp Panel for information display and electronic pop and electronic shelf label using same
CN101968814A (en) * 2010-10-29 2011-02-09 四川长虹电器股份有限公司 Dot matrix font manufacturing method
CN102231254A (en) * 2011-06-15 2011-11-02 佛山市顺德区美的电热电器制造有限公司 Control method for dot matrix liquid crystal display (LCD)
CN102270428A (en) * 2010-06-01 2011-12-07 上海政申信息科技有限公司 Display device and display interface refresh method and device
CN103035219A (en) * 2012-12-25 2013-04-10 广东威创视讯科技股份有限公司 Read-write method and read-write device of dot matrix type liquid crystal display (LCD)
CN103353831A (en) * 2012-12-14 2013-10-16 北京安天电子设备有限公司 Light-emitting diode (LED) display control system and method capable of editing on line
CN104795033A (en) * 2015-04-17 2015-07-22 飞天诚信科技股份有限公司 Display method of paged LCD

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010160251A (en) * 2009-01-07 2010-07-22 Bridgestone Corp Panel for information display and electronic pop and electronic shelf label using same
CN102270428A (en) * 2010-06-01 2011-12-07 上海政申信息科技有限公司 Display device and display interface refresh method and device
CN101968814A (en) * 2010-10-29 2011-02-09 四川长虹电器股份有限公司 Dot matrix font manufacturing method
CN102231254A (en) * 2011-06-15 2011-11-02 佛山市顺德区美的电热电器制造有限公司 Control method for dot matrix liquid crystal display (LCD)
CN103353831A (en) * 2012-12-14 2013-10-16 北京安天电子设备有限公司 Light-emitting diode (LED) display control system and method capable of editing on line
CN103035219A (en) * 2012-12-25 2013-04-10 广东威创视讯科技股份有限公司 Read-write method and read-write device of dot matrix type liquid crystal display (LCD)
CN104795033A (en) * 2015-04-17 2015-07-22 飞天诚信科技股份有限公司 Display method of paged LCD

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109119048A (en) * 2018-09-19 2019-01-01 武汉华风电子工程有限公司 It is a kind of for be free of character library single-color dot matrix display screen character fast refresh display methods
CN110780834A (en) * 2019-10-31 2020-02-11 深圳云里物里科技股份有限公司 Method, system and device for locally updating picture of display equipment
CN113539193A (en) * 2020-04-22 2021-10-22 深圳市大富科技股份有限公司 Liquid crystal display control method and device and computer readable storage medium
CN113900746A (en) * 2021-09-06 2022-01-07 广东瑞德智能科技股份有限公司 Flexible display method and household appliance
CN113900746B (en) * 2021-09-06 2024-06-21 广东瑞德智能科技股份有限公司 Flexible display method and household appliance

Also Published As

Publication number Publication date
CN106157866B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN106157866A (en) The display drive method of electronic atomization device midpoint matrix display and device
CN101388157B (en) Electronic map display method, apparatus and equipment
CN105095200A (en) Method and device for displaying picture in waterfall flow manner
CN109542382B (en) Display method of handwriting input content, electronic equipment and computer storage medium
CN103035219B (en) The reading/writing method of dot matrix type liquid crystal display and device
CN106055295A (en) Picture processing method and device, and picture drawing method and device
CN108280032A (en) Data storage device and flash memory control method
CN112135073B (en) Image character superposition method based on FPGA
CN103247283A (en) Screen refreshing method and device
CN108874392A (en) User's guideline interface generation method and device
CN111881659A (en) Processing method and system of table picture, readable storage medium and computer equipment
CN106251832A (en) A kind of method for caching and processing shown for mobile terminal and device
CN102226893A (en) FAT (file allocation table) file system repairing method in embedded system
CN114758054A (en) Light spot adding method, device, equipment and storage medium
CN106126084A (en) A kind of display packing for electricity paper ink screen
CN109960543A (en) Writing operation processing method and device
US9639970B2 (en) Character recognition system, character recognition program and character recognition method
CN103491416A (en) Single-layer displaying method and device of subtitle data
US20080036775A1 (en) Method for generating characters
US7173640B2 (en) Display of an image on an array screen by selective addressing of screen lines
CN111552410A (en) Writing trace processing method, device, equipment and computer readable storage medium
CN104795033A (en) Display method of paged LCD
JPH0378890A (en) Display method for tabular document information
CN108776981B (en) Target body local area selection method, system and device based on target body image
US7394466B2 (en) Method for memory allocation for images

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant