CN112486621B - Horizontal and vertical screen adaptation method, device and storage medium based on IO level - Google Patents
Horizontal and vertical screen adaptation method, device and storage medium based on IO level Download PDFInfo
- Publication number
- CN112486621B CN112486621B CN202011439342.5A CN202011439342A CN112486621B CN 112486621 B CN112486621 B CN 112486621B CN 202011439342 A CN202011439342 A CN 202011439342A CN 112486621 B CN112486621 B CN 112486621B
- Authority
- CN
- China
- Prior art keywords
- interface
- screen
- level
- display direction
- horizontal
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a horizontal and vertical screen adaptation method, equipment and a storage medium based on IO level, wherein the horizontal and vertical screen adaptation method comprises the following steps: step S1: receiving a preset request, and determining the corresponding relation between an IO interface input signal and a screen display direction according to the preset request; step S2: and reading output signals of any two IO interfaces on the equipment mainboard, and adjusting the display direction of the screen by combining the corresponding relation between the input signals of the IO interfaces and the display direction of the screen. The invention can change the display direction of the screen according to the level of two IO interfaces of the equipment mainboard, replaces the original mode of reading attribute values, achieves the purpose that the same firmware supports the display of different default directions, and keeps the consistency of hardware and software in the production process of the equipment mainboard, thereby improving the production efficiency.
Description
Technical Field
The invention relates to the technical field of equipment mainboard display, in particular to a horizontal and vertical screen adaptation method based on IO level, equipment and a storage medium.
Background
At present, in order to adapt to various application environments, the directions of the display screens on the main boards may be different, that is, some main boards of the equipment need to be displayed in a horizontal screen mode, and some main boards of the equipment need to be displayed in a vertical screen mode. In the production process of the conventional equipment mainboard, the equipment mainboard usually reads the specified attribute value of the system to control the default display direction of the system, and when the attribute value is read-only attribute and cannot be modified, the default direction of a display screen is fixed when the system software is compiled according to the attribute value under normal conditions; if the horizontal screen or vertical screen display is switched, the mainboard produced in the same batch needs to be separately burned, and the horizontal screen and vertical screen adaptation problem can be changed only by burning the equipment mainboard for horizontal screen display and the equipment mainboard for vertical screen display by using different software respectively; and because the equipment mainboard is separately burned, separately tested and separately stored, the problems of mainboard confusion and low production efficiency are likely to occur in the factory implementation process.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide an IO level-based horizontal and vertical screen adaptation method, which can keep the consistency of hardware and software in the production process of a device mainboard and improve the production efficiency.
Another object of the present invention is to provide an electronic device.
It is a further object of the present invention to provide a storage medium.
One of the purposes of the invention is realized by adopting the following technical scheme:
a horizontal and vertical screen adaptation method based on IO level comprises the following steps:
step S1: receiving a preset request, and determining the corresponding relation between an IO interface input signal and a screen display direction according to the preset request;
step S2: and reading output signals of any two IO interfaces on the equipment mainboard, and adjusting the display direction of the screen by combining the corresponding relation between the input signals of the IO interfaces and the display direction of the screen.
Further, in the step S2, connection terminals are externally connected to any two IO interfaces of the device motherboard, and the connection terminals corresponding to the two IO interfaces are connected to the 3.3V power supply through connection lines.
Further, in step S2, the two IO interfaces are a first IO interface and a second IO interface, respectively, the first voltage output by the first IO interface is read, the second voltage output by the second IO interface is read, and the output level states of the first IO interface and the second IO interface are determined.
Further, the method for determining the output level state of the first IO interface includes:
presetting a first threshold value and a second threshold value, wherein the first threshold value is larger than the second threshold value;
judging whether a first voltage output by the first IO interface is larger than the first threshold value or not, and if so, defining the first voltage as a high level; and if the first voltage output by the first IO interface is lower than the second threshold, defining the first IO interface as a low level.
Further, the corresponding relationship between the IO interface input signal and the screen display direction in step S1 is as follows:
when the level state of the first IO interface is a low level, the display direction of the screen is a horizontal direction;
and when the level state of the first IO interface is high level, the display direction of the screen is a longitudinal direction.
Further, the corresponding relationship between the IO interface input signal and the screen display direction in step S1 is as follows:
the first IO interface is at a low level, and when the second IO interface is at the low level, the display direction of the screen is a default direction;
when the first IO interface is at a high level and the second IO interface is at a low level, the display direction of the screen is a direction of clockwise rotation of 90 degrees in a default direction;
when the first IO interface is at a low level and the second IO interface is at a high level, the display direction of the screen is a direction of clockwise rotation of 180 degrees in a default direction;
the first IO interface is high level, and when the second IO interface is high level, the screen display direction is the direction of 270 degrees clockwise rotation of default direction.
The second purpose of the invention is realized by adopting the following technical scheme:
an electronic device comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the IO level-based horizontal and vertical screen adaptation method.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium having stored thereon a computer program which, when executed, implements the IO level-based landscape and portrait screen adaptation method described above.
Compared with the prior art, the invention has the beneficial effects that:
the display direction of the screen is changed according to the level of the two IO interfaces of the equipment mainboard, the original mode of reading attribute values is replaced, the same firmware supports the display of different default directions, the consistency of hardware and software is kept in the production process of the equipment mainboard, and therefore the production efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of an IO level-based horizontal and vertical screen adaptation method according to the present invention;
fig. 2 is a schematic wiring diagram of two IO interfaces according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Example one
The embodiment provides a horizontal and vertical screen adaptation method based on IO level, which is applied to an equipment mainboard and can automatically adapt to the screen display direction of the equipment mainboard, so that the production efficiency of the equipment mainboard is improved.
As shown in fig. 1, the method for adapting a horizontal screen and a vertical screen specifically includes the following steps:
step S1: receiving a preset request, and determining the corresponding relation between the IO interface input signal and the screen display direction according to the preset request.
The relationship between the output signal of the IO interface and the screen display direction needs to be set in advance, and the screen display direction can be directly switched subsequently by combining the preset relationship after the output of the IO interface is read. In the embodiment, output signals of any two IO interfaces on the device main board need to be read, connecting terminals are connected to any two IO interfaces, and the connecting terminals corresponding to the two IO interfaces are connected to a 3.3V power supply through connecting wires; as shown in fig. 2, in this embodiment, the connection terminal may be a jump cap, the two IO interfaces may be connected to the 3.3V power supply and the GND terminal through the jump cap, and when the jump caps of the two IO interfaces are connected to the 3.3V power supply and the GND terminal through wires, resistors of 10 kilohms are required to be connected, that is, the output condition of the two IO interfaces may be read after the device motherboard is turned on.
Step S2: and reading output signals of any two IO interfaces on the equipment mainboard, and adjusting the display direction of the screen by combining the corresponding relation between the input signals of the IO interfaces and the display direction of the screen.
In this embodiment, the output voltages of two IO interfaces of the device motherboard are read, the output voltage of a first IO interface of the two IO interfaces is a first voltage, the output voltage of a second IO interface of the two IO interfaces is a second voltage, and the level states of the first voltage and the second voltage are determined, where the method for determining the output level state of the first IO interface includes: firstly, presetting a first threshold value and a second threshold value, wherein the first threshold value is larger than the second threshold value; when the first voltage output by the first IO interface is judged to be larger than the first threshold, the level of the first IO interface is regarded as a high level; if the first voltage output by the first IO interface is lower than the second threshold, defining the first IO interface as a low level; similarly, the level state of the second IO interface is also determined according to the above rule.
The preset corresponding relationship between the IO interface input signal and the screen display direction in step S1 is also determined according to the level of the IO interface, and specifically includes:
when the level state of the first IO interface is a low level, the display direction of the screen is a horizontal direction, wherein the horizontal direction may be a 0-degree horizontal screen state or a 180-degree horizontal screen state;
when the level state of the first IO interface is a high level, the screen display direction is a longitudinal direction, where the longitudinal direction may be a 90 ° vertical screen state or a 270 ° vertical screen state.
In this embodiment, the corresponding relationship between the IO interface input signal and the screen display direction in step S1 is as follows:
when the first IO interface is at a low level and the second IO interface is at a low level, the display direction of the screen is a default direction, wherein the default direction is a 0-degree horizontal screen state;
when the first IO interface is at a high level and the second IO interface is at a low level, the display direction of the screen is a direction of clockwise rotation of 90 degrees in a default direction, and the display direction of the screen is in a 90-degree vertical screen state;
when the first IO interface is at a low level and the second IO interface is at a high level, the display direction of the screen is a direction of clockwise rotation of 180 degrees in a default direction, and at the moment, the display direction of the screen is in a 180-degree horizontal screen state;
the first IO interface is high level, and when the second IO interface is high level, the screen display direction is the direction of 270 degrees of clockwise rotation of default direction, and at this moment, the screen display direction is 270 degrees vertical screen states.
After the display direction of the screen is adjusted through the rule, the burning software can be automatically adapted to the display screens in different horizontal and vertical screen states, the consistency of hardware and software can be kept in the production process of the equipment mainboard, the efficiency is higher, errors are not easy to occur, and the problem of the default horizontal and vertical screen only needs to adjust the jumping positions corresponding to the two IO ports according to actual needs when the final complete machine is assembled.
Example two
The embodiment provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the IO level-based horizontal and vertical screen adaptation method in the first embodiment when executing the computer program; in addition, the present embodiment also provides a storage medium, on which a computer program is stored, and when the computer program is executed, the method for adapting horizontal and vertical screens based on the IO level is implemented.
The apparatus and the storage medium in this embodiment are based on two aspects of the same inventive concept, and the method implementation process has been described in detail in the foregoing, so that those skilled in the art can clearly understand the structure and implementation process of the system in this embodiment according to the foregoing description, and for the sake of brevity of the description, details are not repeated here.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.
Claims (7)
1. A horizontal and vertical screen adaptation method based on IO level is characterized by comprising the following steps:
step S1: receiving a preset request, and determining the corresponding relation between an IO interface input signal and a screen display direction according to the preset request; the corresponding relationship is as follows:
when the first IO interface is at a low level and the second IO interface is at a low level, the display direction of the screen is a default direction;
when the first IO interface is at a high level and the second IO interface is at a low level, the display direction of the screen is a direction of clockwise rotation of 90 degrees in a default direction;
when the first IO interface is at a low level and the second IO interface is at a high level, the display direction of the screen is a direction of clockwise rotation of 180 degrees in a default direction;
when the first IO interface is at a high level and the second IO interface is at a high level, the display direction of the screen is a direction of clockwise rotation of 270 degrees in a default direction;
step S2: the method comprises the steps of reading output signals of any two IO interfaces on a main board of the equipment, wherein the two IO interfaces are respectively the first IO interface and the second IO interface, and combining the corresponding relation between IO interface input signals and the display direction of a screen to adjust the display direction of the screen, so that burning software can automatically adapt to display screens with different horizontal and vertical screen states.
2. The IO level based horizontal and vertical screen adapting method according to claim 1, wherein in the step S2, any two IO interfaces of the device motherboard are externally connected with connection terminals, and the connection terminals corresponding to the two IO interfaces are connected with a 3.3V power supply through connection wires.
3. The IO level based horizontal and vertical screen adapting method according to claim 1, wherein in step S2, a first voltage output by the first IO interface is read, a second voltage output by the second IO interface is read, and output level states of the first IO interface and the second IO interface are determined.
4. The IO level based horizontal and vertical screen adaptation method according to claim 3, wherein the method for determining the output level state of the first IO interface comprises:
presetting a first threshold value and a second threshold value, wherein the first threshold value is larger than the second threshold value;
judging whether a first voltage output by the first IO interface is larger than the first threshold value or not, and if so, defining the first voltage as a high level; and if the first voltage output by the first IO interface is lower than the second threshold, defining the first IO interface as a low level.
5. The IO level based horizontal and vertical screen adapting method according to claim 4, wherein the corresponding relationship between the IO interface input signal and the screen display direction in the step S1 is as follows:
when the level state of the first IO interface is a low level, the display direction of the screen is a horizontal direction;
and when the level state of the first IO interface is high level, the display direction of the screen is a longitudinal direction.
6. An electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the IO level-based horizontal and vertical screen adaptation method according to any one of claims 1 to 5 when executing the computer program.
7. A storage medium having a computer program stored thereon, wherein the computer program is executed to implement the IO level-based horizontal and vertical screen adaptation method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011439342.5A CN112486621B (en) | 2020-12-07 | 2020-12-07 | Horizontal and vertical screen adaptation method, device and storage medium based on IO level |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011439342.5A CN112486621B (en) | 2020-12-07 | 2020-12-07 | Horizontal and vertical screen adaptation method, device and storage medium based on IO level |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112486621A CN112486621A (en) | 2021-03-12 |
CN112486621B true CN112486621B (en) | 2022-05-06 |
Family
ID=74941357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011439342.5A Active CN112486621B (en) | 2020-12-07 | 2020-12-07 | Horizontal and vertical screen adaptation method, device and storage medium based on IO level |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112486621B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113507284A (en) * | 2021-06-16 | 2021-10-15 | 广州朗国电子科技股份有限公司 | Circuit for self-adaption of default screen direction of android device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101629967A (en) * | 2009-07-10 | 2010-01-20 | 深圳华为通信技术有限公司 | Direction induction method on mobile terminal and device therefor |
CN202930002U (en) * | 2012-11-16 | 2013-05-08 | 深圳Tcl新技术有限公司 | Display device |
CN104063159A (en) * | 2014-06-20 | 2014-09-24 | Tcl通讯(宁波)有限公司 | Portrait and landscape detection device of mobile terminal and detection method of detection device |
CN105187945A (en) * | 2015-09-18 | 2015-12-23 | 浪潮软件集团有限公司 | Method for realizing apk control of android set top box screen direction |
CN205721246U (en) * | 2016-06-02 | 2016-11-23 | 合肥美的电冰箱有限公司 | A kind of door control switch control circuit and household electrical appliance |
CN206135873U (en) * | 2016-09-10 | 2017-04-26 | 苏州创必成电子科技有限公司 | Input data validity detection circuitry with on -off control |
EP3276609A1 (en) * | 2016-07-26 | 2018-01-31 | Beijing Xiaomi Mobile Software Co., Ltd. | Display device and mainboard applied in the display device |
CN111666056A (en) * | 2020-05-28 | 2020-09-15 | 北京百度网讯科技有限公司 | Screen switching display method and device, intelligent rearview mirror and readable storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3936141B2 (en) * | 2000-01-12 | 2007-06-27 | 東芝マイクロエレクトロニクス株式会社 | RAM built-in display driver, and image display apparatus equipped with the display driver |
KR100898868B1 (en) * | 2002-10-31 | 2009-05-21 | 엘지전자 주식회사 | Conversion apparatus for picture mode of potable computer by activation of keyboard |
KR101328769B1 (en) * | 2008-05-19 | 2013-11-13 | 엘지디스플레이 주식회사 | Liquid Crystal Display and Driving Method thereof |
US20100207895A1 (en) * | 2009-02-16 | 2010-08-19 | Samsung Electro-Mechanics Co., Ltd. | Tactile interface device and method for controlling the same |
US9311426B2 (en) * | 2011-08-04 | 2016-04-12 | Blackberry Limited | Orientation-dependent processing of input files by an electronic device |
CN103902026A (en) * | 2012-12-25 | 2014-07-02 | 鸿富锦精密工业(武汉)有限公司 | System and method for automatically adjusting display screen |
CN105324736B (en) * | 2013-07-23 | 2018-09-11 | 英特尔公司 | The technology that touch and non-touch user interactively enters |
-
2020
- 2020-12-07 CN CN202011439342.5A patent/CN112486621B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101629967A (en) * | 2009-07-10 | 2010-01-20 | 深圳华为通信技术有限公司 | Direction induction method on mobile terminal and device therefor |
CN202930002U (en) * | 2012-11-16 | 2013-05-08 | 深圳Tcl新技术有限公司 | Display device |
CN104063159A (en) * | 2014-06-20 | 2014-09-24 | Tcl通讯(宁波)有限公司 | Portrait and landscape detection device of mobile terminal and detection method of detection device |
CN105187945A (en) * | 2015-09-18 | 2015-12-23 | 浪潮软件集团有限公司 | Method for realizing apk control of android set top box screen direction |
CN205721246U (en) * | 2016-06-02 | 2016-11-23 | 合肥美的电冰箱有限公司 | A kind of door control switch control circuit and household electrical appliance |
EP3276609A1 (en) * | 2016-07-26 | 2018-01-31 | Beijing Xiaomi Mobile Software Co., Ltd. | Display device and mainboard applied in the display device |
CN206135873U (en) * | 2016-09-10 | 2017-04-26 | 苏州创必成电子科技有限公司 | Input data validity detection circuitry with on -off control |
CN111666056A (en) * | 2020-05-28 | 2020-09-15 | 北京百度网讯科技有限公司 | Screen switching display method and device, intelligent rearview mirror and readable storage medium |
Non-Patent Citations (1)
Title |
---|
基于Web浏览器的SSL VPN网关系统的设计和实现;张仁等;《计算机工程与设计》;20070228(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112486621A (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108198536B (en) | Voltage calibration method and system based on time schedule controller | |
US11468822B2 (en) | Timing control board, drive device and display device | |
CN201041656Y (en) | CMOS cleaning circuit | |
CN109346014B (en) | Virtual reality equipment and screen control method thereof | |
CN112486621B (en) | Horizontal and vertical screen adaptation method, device and storage medium based on IO level | |
US20180039107A1 (en) | Display device | |
JP2006178403A (en) | Display unit | |
CN111028799B (en) | Driving circuit and driving method of display panel | |
CN207474030U (en) | A kind of liquid crystal display and computer | |
CN115168118A (en) | Control method and device for PCBA board detection table, computer equipment and storage medium | |
CN111833797A (en) | Time sequence control plate, driving device and display device | |
US20040267973A1 (en) | Device and host machine | |
CN117077221A (en) | Hard disk screen printing distribution method and device, computer equipment and medium | |
CN114255712A (en) | Display method and display device | |
TWI765188B (en) | Touch display panel and method of automatically recording firmware thereof | |
CN114063758A (en) | Current value obtaining method, device and medium | |
CN109658898B (en) | Circuit and method for preventing error of read data and display device | |
CN111261090A (en) | System and method for realizing automatic programmable gamma correction | |
US20150074359A1 (en) | Electronic apparatus, control method therefor, and computer program product | |
US20130166897A1 (en) | Electronic device system and electronic device | |
CN113608938A (en) | I2C bus debugging device, system and method | |
CN216391220U (en) | Display picture adjusting system with multi-path VGA signal input | |
CN112735501B (en) | Data interaction method and device, main board and equipment with main board | |
KR100343145B1 (en) | Test system for testing IC having IIC bus interface function, and test method therefor | |
US20230317137A1 (en) | Method and apparatus for testing adjustment circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 238, room 406, 1 Yichuang street, Huangpu District, Guangzhou, Guangdong 510700 Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd. Address before: Room 238, room 406, 1 Yichuang street, Huangpu District, Guangzhou, Guangdong 510700 Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |