CN113138733B - Electronic equipment and method for controlling shell color thereof - Google Patents

Electronic equipment and method for controlling shell color thereof Download PDF

Info

Publication number
CN113138733B
CN113138733B CN202010067577.XA CN202010067577A CN113138733B CN 113138733 B CN113138733 B CN 113138733B CN 202010067577 A CN202010067577 A CN 202010067577A CN 113138733 B CN113138733 B CN 113138733B
Authority
CN
China
Prior art keywords
color
preset
target
interval
instruction
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
Application number
CN202010067577.XA
Other languages
Chinese (zh)
Other versions
CN113138733A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010067577.XA priority Critical patent/CN113138733B/en
Publication of CN113138733A publication Critical patent/CN113138733A/en
Application granted granted Critical
Publication of CN113138733B publication Critical patent/CN113138733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an electronic device and a method for controlling the shell color thereof; the electronic device includes: the device comprises a shell with an electrochromic layer, a display screen, a sensor assembly for detecting data and a processor, wherein the processor is respectively connected with the display screen and the sensor assembly and is used for acquiring target data detected by the sensor assembly; determining a target color from the target data detected by the sensor assembly; controlling the electrochromic layer to display the target color. According to the method and the device, the color of the shell of the electronic equipment is controlled through the data detected by the sensor assembly, so that the shell of the electronic equipment displays different colors based on different detection data.

Description

Electronic equipment and method for controlling shell color thereof
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an electronic device and a method for controlling a color of a housing thereof.
Background
With the development of communication technology, electronic devices such as mobile phones and tablet computers have become indispensable tools in daily life. There is an increasing demand for electronic devices, especially for their appearance. Therefore, in order to meet the needs of people, each type of electronic device is usually provided with a plurality of styles with different appearances, such as: the color and/or pattern on the housing of different models of mobile terminals are different, and even manufacturers can customize the appearance of the electronic device according to the needs of users.
However, the color and pattern of the electronic device are usually fixed after the electronic device is shipped from a factory, and if a user needs to change the appearance of the electronic device, the user can only replace the appearance of the electronic device by sleeving an outer casing on the outer casing.
Disclosure of Invention
The embodiment of the application provides electronic equipment and a method for controlling the shell color of the electronic equipment, so that the shell of the electronic equipment displays different colors based on different detection data.
In a first aspect, an embodiment of the present application provides an electronic device, including:
a housing comprising an electrochromic layer and a protective layer;
a display screen disposed within the housing;
a sensor assembly for detecting data;
the processor, the processor is connected with display screen, sensor subassembly respectively, the processor is used for:
acquiring target data detected by the sensor assembly;
determining a target color from the target data detected by the sensor assembly;
controlling the electrochromic layer to display the target color.
In a second aspect, an embodiment of the present application further provides an electronic device, which includes:
a housing comprising an electrochromic layer;
a display screen disposed within the housing;
a proximity sensor for detecting distance data of a user's ear to the sensor assembly;
a processor connected to the display screen, the proximity sensor, and the housing, respectively, the processor being configured to:
acquiring the distance detected by the proximity sensor;
acquiring a plurality of intervals, wherein each interval corresponds to one color;
determining the current interval of the detected distance;
and controlling the electrochromic layer to display a target color corresponding to the current located interval.
In a third aspect, an embodiment of the present application provides a method for controlling a color of a housing of an electronic device, which is applied to an electronic device including a housing having an electrochromic layer, a display screen disposed in the housing, and a sensor assembly for detecting data, and the method includes:
acquiring target data detected by the sensor assembly;
determining a target color from the target data detected by the sensor assembly;
controlling the electrochromic layer to display the target color.
According to the embodiment of the application, the color of the shell of the electronic equipment can be controlled through the data detected by the sensor assembly, so that the shell of the electronic equipment displays different colors based on different detection data.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic cross-sectional view of the housing of the electronic device shown in fig. 1 along a direction P-P.
Fig. 3 is a first block diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is a second structural block diagram of an electronic device according to an embodiment of the present application.
Fig. 6 is a third structural block diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is a flowchart illustrating a method for controlling a color of a housing of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a first schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 20 may be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), and the like.
The electronic device 20 may include a housing 210, where the housing 210 has an inner surface and an outer surface opposite to each other, the inner surface may be a surface on which components of the electronic device 20 are mounted, and the outer surface may be an exterior of the electronic device 20. For example, the outer surface of the housing 210 may be the side visible to the user and the inner surface may be the side not visible to the user.
Referring to fig. 2, fig. 2 is a schematic cross-sectional view of a housing of the electronic device shown in fig. 1 along a P-P direction. Among other things, the housing 210 may include an electrochromic layer 211 and a protective layer 212. The electrochromic layer 211 is made of a color-changing material, which is a phenomenon that optical properties (reflectivity, transmittance, absorptivity, and the like) are changed stably and reversibly in color under the action of an external electric field, and the material with electrochromic performance is also a precondition for supporting the electronic device housing of the embodiment to change based on a target color; the protective layer 212 may be provided transparently. The electrochromic layer 211 is adhered to the protective layer 212, the protective layer 212 is disposed on a side close to an outer surface of the electronic device 20 relative to the electrochromic layer 211, and the protective layer 212 can protect the electrochromic layer 211 from displaying a target color, wherein the target color is an actual color of the housing, and the actual color is formed by overlapping a color of the electrochromic layer 211 and a transparency of the protective layer 212.
With continued reference to fig. 1, the electronic device 20 may further include a display screen 220, and the display screen 220 may be disposed within the housing 210 to form a display surface of the electronic device 20. The housing 210 may include a battery cover plate and an outer frame, wherein the battery cover plate is integrally connected with the outer frame. The display 220 serves as a front case of the electronic device 20 and forms a closed space with the housing 210 for accommodating other electronic components of the electronic device 20. Meanwhile, the display screen 220 forms a display surface of the electronic device 20, and may display information such as images and texts.
Referring to fig. 3, fig. 3 is a first block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 20 may further include a sensor element 230, and the sensor element 230 may be electrically connected to the display screen 220 by a signal line, such as a copper wire. The sensor assembly 230 may detect data, the type of data detected being determined according to the type of the sensor assembly 230. The sensor assembly 230 may be a pressure sensor, a proximity sensor, a temperature sensor, an ambient light sensor, and the like. For example, a pressure sensor may detect pressure data of a press within the pressure sensor area, a proximity sensor may detect distance data from the proximity sensor, and so forth.
The electronic device 20 may further include a processor 240, a memory 250, and the like, wherein the processor 240 may be used for processing various operations of the electronic device 20, the processor 240 and the memory 250 are integrated on the circuit board, and referring to fig. 3, the processor 240 is connected to the housing 210, the display screen 220, and the sensor assembly 230, respectively.
The processor 240 is a control center of the electronic device 20, connects various parts of the entire electronic device 20 using various interfaces and lines, performs various functions of the electronic device 20 by running or loading a computer program stored in the memory, and calls data stored in the memory, and processes the data, thereby integrally monitoring the electronic device 20. The processor 240 may acquire target data detected by the sensor assembly 230, the type of the target data being determined according to the type of the sensor assembly 230; determining target colors according to target data detected by the sensor assembly 230, wherein each target data corresponds to one target color; the electrochromic layer 211 is controlled to display the target color, wherein the electrochromic layer 211 is caused to display the target color in response to the target color, and the actual color of the housing is formed by the color of the electrochromic layer 211 and the transparency of the protective layer 212, so that the color of the housing 210 is controlled.
In some embodiments, as shown in fig. 4, fig. 4 is a second schematic structural diagram of an electronic device provided in the embodiments of the present application. The display screen 220 in the electronic device 20 may have a display area and a non-display area, and the display area may include a preset display area, and the preset display area may display a color bar, where the color bar includes a plurality of colors, that is, a plurality of colors may be displayed in the preset display area. The color bar is a set of lines of a plurality of colors, and may display a plurality of different colors, and may be a basic color system such as red, orange, yellow, green, cyan, blue, violet, or a color system in which the basic color systems are combined. It should be noted that the preset display area is a preset display area, and may be set at any position of the display area of the display screen 220, and a user may set the preset display area at any position according to personal habits, and may be set above, below, on the left side, on the right side, or in the middle of the display area, which is not limited specifically herein.
Among other things, the sensor assembly 230 in the electronic device 20 may be a pressure sensor. Referring to fig. 5, fig. 5 is a second block diagram of an electronic device according to an embodiment of the present disclosure. The pressure sensor 231 is a device or apparatus capable of sensing a pressure signal and converting the pressure signal into a usable output electrical signal according to a certain rule, and may be classified into a gauge pressure sensor, a differential pressure sensor, an absolute pressure sensor, and the like according to different types of test pressures. The pressure sensor 231 may be integrated on the circuit board, and the position setting corresponds to a preset display area of the display screen 220; the pressure sensor 231 may also be directly integrated inside the display screen 220, and may be configured accordingly according to the actual structure of the electronic device 20.
The pressure sensor 231 may detect pressure data of a target interval in the preset display area according to a preset instruction, where the pressure data of the target interval corresponds to a color in the preset display area. The preset instruction may be a manual instruction such as pressing or clicking performed on the preset display area by the user, and the manual instruction may be an operation instruction such as clicking, double clicking, long pressing, and the like. The target interval is an area where the user executes the preset instruction on a preset display area. It can be understood that the pressure data of the target interval corresponds to the colors in the preset display area one by one, that is, the pressure data of one target interval is detected to correspond to one color.
The processor can also control the preset display area to display a plurality of colors; acquiring pressure data of a target interval detected by a pressure sensor 231; calling a corresponding target color from a preset color library according to the pressure data of the target interval; and controls the electrochromic layer 211 to display the target color. The preset color library may be a color library preset in the electronic device 20, where the preset color library includes multiple colors, and the color type of the preset color library may be greater than or less than the color type in the color bar, and of course, may also be equal to the color type in the color bar. The preset color library is used to provide color matching for the pressure data of the target region detected by the pressure sensor 231, and the electrochromic layer 212 performs color change of the housing according to the color selection in the color library.
For example, with continued reference to fig. 4, the specific process of selecting the pressure sensor 231 to detect data in the electronic device 20 to achieve the selection of the housing color may be: first, the user needs to display a color bar in a preset display area of the electronic device 20 to enter the color selection mode of the housing 210; then, the user performs clicking operation on the red area in the preset display area; meanwhile, the pressure sensor 231 may determine that the target interval is the red area according to the click instruction, and detect pressure data corresponding to the red area; then, calling a color corresponding to the red area from a preset color library based on the pressure data of the red area, namely, taking the red as a target color; finally, the electrochromic layer 211 is controlled to display red, thereby turning the housing 210 red, completing the selection of the color of the housing 210.
The electronic device 20 may further include a memory 250, where the memory 250 may store a corresponding relationship between the pressure data of the target interval and the color in the called preset color library, where each pressure data corresponds to one color. That is, after the user completes one selection of the color of the shell 210 through the pressure sensor 231, there is a corresponding relationship between the pressure data of the target section detected by the pressure sensor 231 and the color in the currently called color library.
The memory 250 may be a register, which is the fastest memory in the electronic device and is divided into a general register, a special register, a segment register, and other registers, and each register stores one type of variable. The function of the register is to store binary codes, which are composed of a combination of flip-flops having a storage function. Because the registers have very high read-write speed, data transfer between the registers is very fast, and saving and transferring of information can be completed more quickly relative to a memory.
For example, if the color of the housing 210 is changed to red, there may be a corresponding relationship between the pressure data in the red area detected by the pressure sensor 210 in the preset area and the red color in the preset color library. The corresponding relation can be stored in a register, the register stores the corresponding relation, when the data is stored in the register of the shell color which the user wants to replace, the color of the shell 210 can be directly replaced according to the stored data, and the color selection efficiency of the shell 210 is improved.
In some embodiments, the color type in the preset color library is smaller than the color type in the color bar, and at this time, the processor 240 may further obtain first pressure data detected by the pressure sensor 231, where the first pressure data corresponds to a first color in the preset display area; if the first color does not exist in the preset color library, second pressure data detected by the pressure sensor 231 is obtained again, wherein the second pressure data corresponds to the second color in the preset display area.
For example, assume that a color bar is displayed in a predetermined display area of the electronic device 20; the user carries out clicking operation on the red area in the preset display area; meanwhile, the pressure sensor 231 may determine that the target interval is the red region according to the click instruction, and detect first pressure data corresponding to the red region, where the red region corresponds to a first color red; calling red from a preset color library based on the first pressure data, but the first color red does not exist in the preset color library; performing clicking operation on the green area of the preset area again; at this time, the target section is a green area corresponding to a second color green, and the pressure sensor detects second pressure data. It is understood that the green color corresponding thereto may be called from the preset color library as the target color based on the second pressure data, and the electrochromic layer 211 may be controlled to display the green color. If the matched target color is not found in the preset color library according to the second pressure data, continuously acquiring third pressure data, fourth pressure data and the like detected by the pressure sensor 231, and so on.
The manner of performing multiple pressure detections through the pressure sensor 231 may be a false touch behavior of the user when the preset instruction is executed in the preset display area, for example, the clicked position is between red and green, the color type identified by the electronic device 20 may be red, green, or a mixed color of the red and green, and when the mixed color of the red and green occurs, the mixed color does not exist in the preset color library, and therefore, the color needs to be obtained again until the matched color is found in the color library.
In some embodiments, when the user performs the preset instruction operation on the color bar, because the operation has randomness, for the case that the position clicked by the user is between red and green, the position may also be determined according to a comparison between areas of the red region and the green region occupied by the position clicked by the user, for example, the area occupied by the red region is 55% and the area occupied by the green region is 45%, the electronic device 20 may use the red region as the target region, determine that the target color is red, and display the housing 210 in red.
In some embodiments, please refer to fig. 6, where fig. 6 is a third structural block diagram of an electronic device according to an embodiment of the present application. The sensor component 230 in the electronic device 20 may be a proximity sensor 232, and the proximity sensor 232 may be integrated on a circuit board, or may be directly integrated inside the display screen 220, and may be configured according to the actual structure of the electronic device 20. The proximity sensor 232 is a device capable of sensing the proximity of an object, and recognizes the proximity of an object by using the sensitivity of the displacement sensor to the approaching object, and outputs a corresponding switching signal. The proximity sensor 232 may detect a target distance from the user's ear to the proximity sensor. Therefore, the processor 240 may also determine whether the target distance is less than or equal to a preset distance; if yes, controlling the electrochromic layer 211 to display a first color; if not, the electrochromic layer 212 is controlled to display a second color, wherein the first color is different from the second color in shade.
For example, the preset distance may be set to 5cm, and if the proximity sensor 232 detects that the distance between the ear of the user and the proximity sensor is 4cm, the electrochromic layer 211 of the electronic device 20 is displayed in the first color because 4cm is smaller than the preset distance of 5 cm; when the proximity sensor 232 detects that the user's ear is 15cm away from the proximity sensor, the electrochromic layer 211 of the electronic device 20 is displayed in the second color because 15cm is greater than the preset distance of 5cm. It should be noted that the first color and the second color are colors set by the user, and the first color and the second color are selected variously, so that the user can adjust or replace the colors at random. The first color and the second color are different shades of color, i.e., different colors, so that the electrochromic layer 211 may have a selection and variation of colors in both states of the electronic device 20 being near or away from the user's ear.
When the sensor component in the electronic device 20 is the proximity sensor 232, the processor 240 may further obtain a first distance and a second distance detected by the proximity sensor, where the first distance is smaller than or equal to a preset distance, and the second distance is greater than the preset distance; when the first distance is moved to the second distance, the color displayed by the electrochromic layer 211 is controlled to change from the first color to the second color.
For example, if a typical user moves the electronic device approximately 20cm from being away from the ear to being close to the ear, the preset distance may be set to 5cm. The proximity sensor detects that a first distance between the ear of the user and the proximity sensor is 4cm, and if the distance is smaller than 4cm and smaller than 5cm, the electronic device 20 is considered to be close to the ear of the user, and the electrochromic layer displays a first color; the proximity sensor detects that the distance between the ear of the user and the proximity sensor is 15cm, and if the distance between the ear of the user and the proximity sensor is greater than the preset distance of 5cm, the electronic device 20 is considered to be far away from the ear of the user at the moment, and the electrochromic layer displays a second color at the moment; when the distance between the proximity sensor and the ear of the user is moved from 4cm to 15cm, the electrochromic layer is displayed in a first color when the distance is less than or equal to 5 cm; the electrochromic layer exhibits a second color at greater than 5cm. That is, the electrochromic layer changes from the first color to the second color in a process from less than or equal to a preset distance to greater than the preset distance.
Referring to fig. 6, the electronic device 20 may include a housing 210, a display screen 220, a proximity sensor 232, a processor 240, and other components, and for specific locations, structures, and uses, reference is made to the electronic device in the first embodiment, and details are not repeated here.
Among other things, the housing 210 may include an electrochromic layer 211 and a protective layer 212; the display screen 220 is disposed within the housing; the proximity sensor 232 is used to detect distance data from the user's ear to the sensor assembly; the processor 240 is respectively connected with the display screen 220, the proximity sensor 232 and the housing 210, and can acquire the distance detected by the proximity sensor 232; acquiring a plurality of intervals, wherein each interval corresponds to one color, and the plurality of intervals can be set by a user; determining the current range of the detected distance, wherein the current range corresponds to one color; controlling the electrochromic layer 211 to display a target color corresponding to the currently located interval.
In some embodiments, the processor 240 may further move from a first distance to a second distance when acquiring the distance detected by the proximity sensor 232, wherein the first distance is within a first interval and the second distance is within a second interval; the electrochromic layer 211 is controlled to display a first color corresponding to a first interval and a second color corresponding to a second interval, wherein the first color is different from the second color in shade.
For example, when the electronic device is more than 30cm from the user's ear, the color of the electronic device housing will not change. That is, when the distance between the electronic device and the ear of the user is 30cm, the color of the housing of the electronic device is displayed as red, and the distance between the electronic device and the ear of the user is greater than 30cm, the color of the housing of the electronic device remains red and does not change. Therefore, 30cm can be used as a critical value, a user can set a plurality of intervals between the electronic device and the ear of the user within a distance of 30cm, one interval can be set every 5cm, namely, in six intervals of 5cm, 10 cm, 15cm, 20cm, 25 cm and 30cm, the color purity at 5cm is set to be a, the color purity at 10 cm is set to be B, the color purity at 15cm is set to be C, the color purity at 20cm is set to be D, the color purity at 25 cm is set to be E, the color purity at 30cm is set to be F, and the colors of a, B, C, D, E and F are different. Moving from 5cm to 30cm, the color can be gradually changed from dark to light, and can also be gradually changed from light to dark. Of course, the color may be randomly changed, and the user may select the color of each section by himself, which is not limited herein.
Referring to fig. 7, fig. 7 is a schematic flow chart of a method for controlling a color of a housing of an electronic device according to an embodiment of the present application, where the method for controlling a color of a housing of an electronic device can be applied to the electronic device according to the embodiment of the present application, and the method for controlling a color of a housing of an electronic device includes the following steps:
101. target data detected by the sensor assembly is acquired.
The sensor component may be a pressure sensor, a proximity sensor, a temperature sensor, an ambient light sensor, and the like. For example, a pressure sensor may detect pressure data of a touch within the pressure sensor area, a proximity sensor may detect distance data from the proximity sensor, and so forth.
In some embodiments, a display screen in an electronic device may have a display area and a non-display area, and the display area may include a preset display area, and the preset display area may display a color bar, where the color bar includes a plurality of colors, that is, a plurality of colors may be displayed in the preset display area. It should be noted that the preset display area is a preset display area, and may be set at any position of the display area of the display screen, which is not specifically limited herein.
In some embodiments, the sensor assembly may be a pressure sensor, which may be integrated on the circuit board, the position setting corresponding to a preset display area of the display screen; the pressure sensor can also be directly integrated in the display screen, and can be correspondingly arranged according to the actual structure of the electronic equipment. The pressure sensor can detect pressure data of a target interval in a preset display area according to a preset instruction, wherein the pressure data of the target interval corresponds to colors in the preset display area. The preset instruction may be a manual instruction such as pressing or clicking performed on the preset display area by the user, and the manual instruction may be an operation instruction such as clicking, double clicking, long pressing, and the like. The target interval is an area where the user executes the preset instruction on a preset display area. It is understood that the pressure data of the target interval corresponds to the color in the preset display area, that is, the pressure data of one target interval is detected to correspond to one color.
102. Determining a target color based on the target data detected by the sensor assembly.
In some embodiments, the preset display area is controlled to display colors; acquiring pressure data of a target interval detected by the pressure sensor, wherein the pressure data of the target interval corresponds to the color in the preset display area; and calling corresponding target colors from a preset color library according to the pressure data of the target interval, wherein each pressure data corresponds to one color.
The preset color library may be a color library preset in the electronic device, where the preset color library includes multiple colors, and the types of the colors may be greater than or less than the types of the colors in the color bar, and of course, may also be equal to the types of the colors in the color bar. The preset color library is used for providing color matching for the pressure data of the target interval detected by the pressure sensor, and the electrochromic layer can change the color of the shell according to the color selection in the color library.
In some embodiments, the electronic device may further include a memory, and the memory may store a correspondence relationship between the pressure data of the target interval and the color in the called preset color library, where each pressure data corresponds to one color. That is, after the user completes one selection of the shell color through the pressure sensor, there is a corresponding relationship between the pressure data of the target interval detected by the pressure sensor and the color in the currently called color library, and the register stores the corresponding relationship, and when the register of the shell color that the user wants to replace stores data, the efficiency of selecting the shell color can be improved.
In some embodiments, when the color type in the preset color library is smaller than the color type in the color bar, first pressure data detected by the pressure sensor is acquired, wherein the first pressure data corresponds to a first color in the preset display area; and if the first color does not exist in the preset color library, second pressure data detected by the sensor is obtained again, wherein the second pressure data corresponds to the second color in the preset display area.
If the matched target color is not found in the preset color library according to the second pressure data, continuously acquiring third pressure data, fourth pressure data and the like detected by the pressure sensor, and so on until the color which the user wants to replace is found.
103. Controlling the electrochromic layer to display the target color.
The housing may include an electrochromic layer and a protective layer. The electrochromic layer has electrochromic properties; the protective layer may be provided transparently. Electrochromic layer and protective layer bonding setting, the protective layer sets up in being close to electronic equipment surface one side for electrochromic layer, and the protective layer can protect electrochromic layer to show the target color, and wherein, this target color is the actual color of shell, and this actual color is formed by the colour of electrochromic layer and the transparency stack of protective layer.
In some embodiments, the preset display area is controlled to display a plurality of colors; acquiring pressure data of a target interval detected by a pressure sensor; calling a corresponding target color from a preset color library according to the pressure data of the target interval; and controls the electrochromic layer to display the target color.
For example, a user needs to display a color bar in a preset display area of the electronic device to enter a shell color selection mode; then, the user performs clicking operation on the red area in the preset display area; meanwhile, the pressure sensor can determine that the target interval is the red area according to the click instruction and detect pressure data corresponding to the red area; then, calling a color corresponding to the red area from a preset color library based on the pressure data of the red area, namely, taking the red as a target color; and finally, controlling the electrochromic layer to display red, so that the shell is changed into red, and completing the selection of the shell color.
As can be seen from the above, the present embodiment can obtain the target data detected by the sensor assembly; determining a target color from the target data detected by the sensor assembly; controlling the electrochromic layer to display the target color. The data detected by the sensor assembly realize the control of the shell color of the electronic equipment, so that the shell of the electronic equipment displays different colors based on different detection data.
The embodiment of the application also provides a storage medium, wherein the storage medium stores a computer program, and when the computer program runs on a computer, the computer is enabled to execute the electronic equipment shell color control method in any embodiment.
For example, in some embodiments, when the computer program is run on a computer, the computer performs the steps of:
acquiring target data detected by the sensor assembly;
determining a target color from the target data detected by the sensor assembly;
controlling the electrochromic layer to display the target color.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in the method for controlling the color of the shell of the electronic device provided in the embodiment of the present application, the beneficial effects that can be achieved by the method for controlling the color of the shell of the electronic device provided in the embodiment of the present application can be achieved, for details, see the foregoing embodiment, and are not described herein again.
It should be noted that, for the method for controlling the shell color of the electronic device in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the method for controlling the shell color of the electronic device in the embodiment of the present application can be completed by controlling related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of the electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the method for controlling the shell color of the electronic device can be included.
The electronic device and the method for controlling the color of the housing thereof provided by the embodiment of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the embodiment of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. An electronic device, comprising:
a housing comprising an electrochromic layer and a protective layer;
the display screen is arranged in the shell and comprises a preset display area, the preset display area can display multiple colors, the preset display area comprises multiple intervals, and each interval correspondingly displays one color;
the sensor assembly comprises a pressure sensor, the position of the pressure sensor corresponds to the preset display area, the pressure sensor is used for detecting pressure data of a target area in the preset display area according to a preset instruction, the preset instruction comprises a pressing instruction and a clicking instruction, the pressing instruction comprises a long pressing instruction, the clicking instruction comprises a clicking instruction and a double clicking instruction, and the pressure data of the target area corresponds to colors in the preset display area;
the processor, the processor is connected with display screen, sensor subassembly respectively, the processor is used for:
controlling the preset display area to display a plurality of colors;
acquiring a touch position corresponding to the preset instruction;
if the touch positions are all located in one of the intervals, taking the interval corresponding to the touch positions as the target interval;
if the touch position is located in two adjacent intervals, determining the area of the touch position occupying the two adjacent intervals, and taking the interval with the large area occupied by the touch position in the two adjacent intervals as the target interval;
acquiring pressure data of the target interval detected by the pressure sensor;
calling a corresponding target color from a preset color library according to the pressure data of the target interval;
and controlling the electrochromic layer to display the target color, and forming the actual color of the shell based on the target color displayed by the electrochromic layer and the transparency of the protective layer in a superposition manner.
2. The electronic device according to claim 1, further comprising a memory, wherein the memory is configured to store a correspondence between the pressure data of the target interval and the called color in the preset color library, and each pressure data corresponds to one color.
3. The electronic device of claim 2, wherein the processor is further configured to:
acquiring first pressure data detected by the pressure sensor, wherein the first pressure data corresponds to a first color in a preset display area;
and if the first color does not exist in the preset color library, second pressure data detected by the sensor is obtained again, wherein the second pressure data corresponds to a second color in a preset display area.
4. The electronic device of claim 1, wherein the sensor assembly comprises a proximity sensor to detect a target distance from a user's ear to the proximity sensor, the processor further to:
judging whether the target distance is smaller than or equal to a preset distance;
if yes, controlling the electrochromic layer to display a first color;
and if not, controlling the electrochromic layer to display a second color, wherein the first color is different from the second color in shade.
5. The electronic device of claim 4, wherein the processor is further configured to:
acquiring a first distance and a second distance detected by the proximity sensor, wherein the first distance is less than or equal to a preset distance, and the second distance is greater than the preset distance;
when the first distance is moved to the second distance, the color displayed by the electrochromic layer is controlled to be changed from the first color to a second color.
6. An electronic device, comprising:
a housing comprising an electrochromic layer and a protective layer;
the display screen is arranged in the shell and comprises a preset display area, the preset display area can display various colors, the preset display area comprises a plurality of intervals, and each interval correspondingly displays one color;
a proximity sensor for detecting distance data of a user's ear to the sensor assembly;
the pressure sensor is used for detecting pressure data of a target interval in the preset display area according to a preset instruction, wherein the preset instruction comprises a pressing instruction and a clicking instruction, the pressing instruction comprises a long pressing instruction, the clicking instruction comprises a clicking instruction and a double clicking instruction, and the pressure data of the target interval corresponds to colors in the preset display area;
a processor, the processor is connected with display screen, proximity sensor, pressure sensor and shell respectively, the processor is used for:
acquiring the distance detected by the proximity sensor;
acquiring a plurality of intervals, wherein each interval corresponds to one color;
determining the section where the detected distance is located currently;
controlling the electrochromic layer to display a target color corresponding to the current located interval;
the processor is further configured to:
controlling the preset display area to display a plurality of colors;
acquiring a touch position corresponding to the preset instruction;
if the touch positions are all located in one of the intervals, taking the interval corresponding to the touch positions as the target interval;
if the touch position is located in two adjacent intervals, determining the area of the touch position occupying the two adjacent intervals, and taking the interval with the large area occupied by the touch position in the two adjacent intervals as the target interval;
acquiring pressure data of the target interval detected by the pressure sensor;
calling a corresponding target color from a preset color library according to the pressure data of the target interval;
and controlling the electrochromic layer to display the target color, and forming the actual color of the shell based on the target color displayed by the electrochromic layer and the transparency of the protective layer in a superposition manner.
7. The electronic device of claim 6, wherein the processor is further configured to:
acquiring the distance detected by the proximity sensor, and moving the distance from a first distance to a second distance, wherein the first distance is within a first interval, and the second distance is within a second interval;
and controlling the electrochromic layer to display a first color corresponding to a first interval to change to a second color corresponding to a second interval, wherein the first color is different from the second color in shade.
8. The utility model provides a control method of electronic equipment shell colour, is applied to electronic equipment, its characterized in that, electronic equipment includes the shell that has electrochromic layer and protective layer, sets up display screen and sensor module in the shell, the display screen is including predetermineeing the display area, predetermineeing the display area and can showing multiple colour, sensor module includes pressure sensor, pressure sensor's position set up with predetermine the display area and correspond, wherein, predetermine the display area and include a plurality of intervals, every interval corresponds and shows a colour pressure sensor is used for detecting according to predetermineeing the instruction the pressure data of target interval in the preset display area, wherein, predetermine the instruction and include press instruction and click instruction, press instruction and include long press instruction, click instruction includes click instruction and double click instruction, the pressure data of target interval corresponds the colour in predetermineeing the display area, the method includes:
controlling the preset display area to display a plurality of colors;
acquiring a touch position corresponding to the preset instruction;
if the touch positions are all located in one of the intervals, taking the interval corresponding to the touch positions as the target interval;
if the touch position is located in two adjacent intervals, determining the area of the touch position occupying the two adjacent intervals, and taking the interval with the large area occupied by the touch position in the two adjacent intervals as the target interval;
acquiring pressure data of the target interval detected by the pressure sensor;
calling a corresponding target color from a preset color library according to the pressure data of the target interval;
and controlling the electrochromic layer to display the target color, and forming the actual color of the shell based on the target color displayed by the electrochromic layer and the transparency of the protective layer in a superposition manner.
9. The control method according to claim 8, characterized in that the method further comprises:
acquiring first pressure data detected by the pressure sensor, wherein the first pressure data corresponds to a first color in a preset display area;
and if the first color does not exist in the preset color library, second pressure data detected by the sensor is obtained again, wherein the second pressure data corresponds to a second color in a preset display area.
CN202010067577.XA 2020-01-20 2020-01-20 Electronic equipment and method for controlling shell color thereof Active CN113138733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010067577.XA CN113138733B (en) 2020-01-20 2020-01-20 Electronic equipment and method for controlling shell color thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010067577.XA CN113138733B (en) 2020-01-20 2020-01-20 Electronic equipment and method for controlling shell color thereof

Publications (2)

Publication Number Publication Date
CN113138733A CN113138733A (en) 2021-07-20
CN113138733B true CN113138733B (en) 2023-02-28

Family

ID=76809271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010067577.XA Active CN113138733B (en) 2020-01-20 2020-01-20 Electronic equipment and method for controlling shell color thereof

Country Status (1)

Country Link
CN (1) CN113138733B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645610A (en) * 2017-10-19 2018-01-30 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN108351702A (en) * 2015-09-15 2018-07-31 三星电子株式会社 Intelligent window system and its control method
CN108873548A (en) * 2018-08-14 2018-11-23 Oppo广东移动通信有限公司 Electrochromism method, apparatus, electrochromic window assemblies and electronic equipment
CN109088988A (en) * 2018-07-27 2018-12-25 Oppo广东移动通信有限公司 Apparatus control method, device, storage medium and electronic equipment
CN109189261A (en) * 2018-07-27 2019-01-11 Oppo广东移动通信有限公司 Electronic equipment and its control method
CN110462552A (en) * 2017-04-10 2019-11-15 谷歌有限责任公司 Using pressure sensor input, selectively routing user is inputted

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621738B (en) * 2017-10-19 2021-01-08 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN208257873U (en) * 2018-06-07 2018-12-18 信利光电股份有限公司 A kind of cover board applied to mobile device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108351702A (en) * 2015-09-15 2018-07-31 三星电子株式会社 Intelligent window system and its control method
CN110462552A (en) * 2017-04-10 2019-11-15 谷歌有限责任公司 Using pressure sensor input, selectively routing user is inputted
CN107645610A (en) * 2017-10-19 2018-01-30 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN109088988A (en) * 2018-07-27 2018-12-25 Oppo广东移动通信有限公司 Apparatus control method, device, storage medium and electronic equipment
CN109189261A (en) * 2018-07-27 2019-01-11 Oppo广东移动通信有限公司 Electronic equipment and its control method
CN108873548A (en) * 2018-08-14 2018-11-23 Oppo广东移动通信有限公司 Electrochromism method, apparatus, electrochromic window assemblies and electronic equipment

Also Published As

Publication number Publication date
CN113138733A (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN109116656B (en) Electronic device, electrochromic portion control method, and storage medium
CN109034103B (en) Electronic device, electrochromic portion control method, and storage medium
KR102254597B1 (en) electronic device including flexible and method for controlling and operating screen of the same
US8487886B2 (en) Information input device, information input method, information input/output device, and information input program
CN109101833B (en) Content display method, content display device, storage medium and electronic equipment
CN109029768B (en) Temperature reminding method and device of electronic equipment, storage medium and electronic equipment
CN103973288B (en) The press-key structure of hand-held electronic product
CN108037956A (en) A kind of display interface display methods, display device and computer-readable recording medium
CN209746324U (en) Electronic device
EP4149092A1 (en) Electronic device comprising multiple displays and method for operating same
US20210385311A1 (en) Electronic device including a plurality of displays and method for operating same
CN108989567A (en) Information prompting method, storage medium and electronic equipment
CN108718367A (en) Control method of electronic device, device, storage medium and electronic equipment
CN112087536A (en) Shell color control device and mobile terminal
KR20220012142A (en) An electronic device providing both sharing screen and non-sharing screen and control method thereof
CN113138733B (en) Electronic equipment and method for controlling shell color thereof
US20210333904A1 (en) Touch keyboard, manufacturing method thereof and mobile terminal
US20230051784A1 (en) Electronic device for displaying content and control method therefor
CN105074810A (en) Portable electronic device, control method therefor, and program
EP4170419A1 (en) Electronic device
CN109165492A (en) Apparatus control method, device, storage medium and electronic equipment
CN114624937B (en) Control method, electronic device, and computer-readable storage medium
CN110392136B (en) Mobile terminal, display control method thereof and computer storage medium
CN108737656B (en) Processing method and device of floating button, storage medium and electronic equipment
KR20220078184A (en) An electronic device for moving and displaying at least one object according to the expansion of the flexible display, and a control method thereof

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
GR01 Patent grant
GR01 Patent grant