Dynamic scanning method and device for LED nixie tube, electronic equipment and storage mediumTechnical Field
The invention relates to the technical field of LED dynamic scanning, in particular to a method and a device for dynamically scanning an LED nixie tube, electronic equipment and a storage medium.
Background
The driving modes of the LED nixie tubes comprise static driving and scanning display driving, wherein the static driving needs more peripheral devices, driving current is larger than that of scanning display, and I/O ports can be effectively reduced by means of lighting COM ports of the nixie tubes in turn, so that the driving mode becomes a common driving mode. However, in the scanning display driving, since the plurality of COM ports are scanned and lighted by turns, if the number of lighting lamps of each COM port is different, there are problems that the display brightness of each nixie tube is not uniform and the brightness is dark. In addition, when one nixie tube is changed from one display font to another display font, if the number of the lighting lamps of the two fonts is different, the display brightness of the nixie tube is changed.
Disclosure of Invention
In view of the above, the present invention provides a dynamic scanning method, device, electronic device and storage medium for an LED nixie tube, aiming to solve the technical problems of uneven display brightness and shading caused by different numbers of COM lights during the scanning display driving of the LED nixie tube.
A dynamic scanning method for an LED nixie tube comprises the following steps:
identifying the brightness display gear of the LED nixie tube, and acquiring the standard segment display quantity and the standard scanning frequency of the brightness display gear;
detecting the font displayed by the LED nixie tube, and calculating the actual segment display quantity of the LED nixie tube;
adjusting the actual scanning frequency of the LED nixie tube according to the ratio of the actual segment display quantity of the LED nixie tube to the standard segment display quantity;
and scanning the LED nixie tube according to the adjusted actual scanning frequency.
Further, the actual scanning frequency of the LED nixie tube is adjusted according to the following formula:
f=fi.sta*(Y/Z),
wherein f is the actual scanning frequency,
fi.stain order to be the standard scanning frequency,
i is a display brightness gear position,
y is the standard segment display quantity,
z is the actual segment display quantity.
Further, the standard scanning frequency is obtained according to the following formula:
fi.sta=fi.set*(8/Y)=[fL+(fH-fL)/(X-1)*(i-1)]*(8/Y),
wherein f isi.staIs a labelThe frequency of the quasi-scanning is determined,
fi.setin order to set the scanning frequency,
i is a display brightness gear position,
y is the standard segment display quantity,
fLthe scanning frequency of the gear is displayed for the darkest brightness,
fHthe scanning frequency of the gear is displayed for the highest brightness,
x is the quantity of the brightness display gears contained in the LED nixie tube.
Further, the dynamic scanning method comprises:
identifying the brightness display gear of the LED nixie tube, and acquiring the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the brightness display gear;
detecting the font displayed by the current COM port, and calculating the actual segment display quantity of the current COM port;
adjusting the actual scanning frequency of the current COM port according to the ratio of the actual segment display quantity of the current COM port to the standard segment display quantity of a single COM port;
scanning the current COM port according to the adjusted actual scanning frequency, and switching to the next COM port after the scanning of the current COM port is finished;
and circulating the steps of detecting, calculating, adjusting and scanning while scanning and switching until the display of the LED nixie tube is finished.
Further, the adjusting method comprises the following steps:
identifying the brightness display gear of the LED nixie tube, and acquiring the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the brightness display gear;
detecting the font displayed by the current COM port, and calculating the actual segment display quantity of the current COM port;
adjusting the actual scanning frequency of the current COM port according to the ratio of the actual segment display quantity of the current COM port to the standard segment display quantity of a single COM port;
scanning the current COM port according to the adjusted actual scanning frequency, and switching to the next COM port after the scanning of the current COM port is finished;
the steps of detection, calculation, adjustment and scanning are circulated while scanning is switched until all COM ports are scanned;
identifying the brightness display gear of the LED nixie tube again, and judging whether the brightness display gear of the LED nixie tube is changed or not;
if the brightness display gear of the LED nixie tube is not changed, the steps of circular detection, calculation, adjustment, scanning and switching are continuously executed;
if the brightness display gear of the LED nixie tube is changed, the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the new brightness display gear are obtained, and the steps of circular detection, calculation, adjustment, scanning and switching are continuously executed.
And circularly recognizing and judging the steps again until the LED nixie tube displays the end.
Further, the dynamic scanning method comprises:
identifying the brightness display gear of the LED nixie tube, and acquiring the standard scanning frequency of a single COM port and the standard segment display quantity of the single COM port under the brightness display gear;
detecting the font displayed by each COM port, and calculating the actual segment display quantity of each COM port;
adjusting the actual scanning frequency of each COM port according to the ratio of the actual segment display quantity of each COM port to the standard segment display quantity of a single COM port;
and scanning the corresponding COM port according to the adjusted actual scanning frequency of each COM port until the display of the LED nixie tube is finished.
Further, the dynamic scanning method comprises:
identifying the brightness display gear of the LED nixie tube, and acquiring the standard scanning frequency of a single COM port and the standard segment display quantity of the single COM port under the brightness display gear;
detecting the font displayed by each COM port, and calculating the actual segment display quantity of each COM port;
adjusting the actual scanning frequency of each COM port according to the ratio of the actual segment display quantity of each COM port to the standard segment display quantity of a single COM port;
scanning the corresponding COM port according to the adjusted actual scanning frequency of each COM port until all COM ports are scanned;
identifying the brightness display gear of the LED nixie tube again, and judging whether the brightness display gear of the LED nixie tube is changed or not;
if the brightness display gear of the LED nixie tube is not changed, the steps of circular detection, calculation, adjustment and scanning are continuously executed;
if the brightness display gear of the LED nixie tube is changed, acquiring the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the new brightness display gear, and continuously executing the steps of circular detection, calculation, adjustment and scanning;
and circularly recognizing and judging the steps again until the LED nixie tube displays the end.
A dynamic scanning device for an LED nixie tube comprises:
the identification module is used for identifying the brightness display gear of the LED nixie tube;
the acquisition module is used for acquiring the standard segment display quantity and the standard scanning frequency of the LED nixie tube under different brightness display gears;
the detection module is used for detecting the font displayed by the LED nixie tube;
the calculation module is used for calculating the actual segment display quantity of different character types displayed by the LED nixie tube;
the adjusting module is used for adjusting the actual scanning frequency of the LED nixie tube according to the ratio of the actual segment display quantity of the LED nixie tube to the standard segment display quantity;
and the judging module is used for judging whether the brightness display gear of the LED nixie tube is changed or not.
An electronic device comprises a memory, a processor 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 dynamic scanning method of the LED nixie tube.
A computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the aforementioned LED nixie tube dynamic scanning method.
The invention has the beneficial effects that: the invention can realize the dynamic adjustment of the scanning frequency of each COM port in the LED nixie tube, further realize the adjustment of the scanning lighting time of the corresponding COM port according to the lighting quantity of each COM port, achieve the aim of enabling the power obtained by each segment to be the same, and solve the problems of uneven display brightness and brightness caused by different lighting quantities of each COM port.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1a is a schematic structural diagram of an LED nixie tube in all embodiments of the present invention;
FIG. 1b is a schematic diagram of the logic structure of the LED nixie tube in all embodiments of the present invention;
FIG. 1c is a schematic diagram of the font displayed by the LED nixie tube in all embodiments of the present invention;
fig. 2 is a schematic flow chart of a dynamic scanning method for an LED nixie tube according toembodiment 1 of the present invention;
fig. 3 is a schematic flow chart of a dynamic scanning method for an LED nixie tube according toembodiment 2 of the present invention;
fig. 4 is a schematic flow chart of a dynamic scanning method for an LED nixie tube according to embodiment 2.1 of the present invention;
fig. 5 is a schematic flowchart of a dynamic scanning method for an LED nixie tube according to embodiment 3 of the present invention;
fig. 6 is a schematic flow chart of a dynamic scanning method for an LED nixie tube according to embodiment 3.1 of the present invention;
fig. 7 is a schematic structural diagram of an LED digital tube dynamic scanning apparatus provided in embodiment 4 of the present invention;
fig. 8 is a schematic structural diagram of an LED digital tube dynamic scanning apparatus provided in embodiment 4.1 of the present invention;
fig. 9 is a schematic structural diagram of an electronic device provided in embodiment 5 of the present invention.
Description of the main elements
| Dynamic scanning device forLED nixie tube | 10 |
| Identification module | 11 |
| Acquisition module | 12 |
| Detection module | 13 |
| Computing module | 14 |
| Adjusting module | 15 |
| Judgingmodule | 16 |
| Electronic device | 20 |
| Processor with a memory having a plurality ofmemory cells | 21 |
| Memory device | 22 |
| Computer program | 23 |
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings are intended to cover non-exclusive inclusions.
The dynamic scanning method for LED nixie tubes provided in all embodiments of the present invention can be applied to one or more electronic devices, where the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), an intelligent wearable device, and the like.
The electronic device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a cloud computing (cloud computing) based cloud consisting of a large number of hosts or network servers.
The Network where the electronic device is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
As shown in fig. 1a, all the examples in this embodiment use a four-bit LED nixie tube as an example to illustrate the specific implementation of the present invention, wherein, as shown in fig. 1b, the LED nixie tube includes 4 COM ports, each LED nixie tube includes 8 segments of nixie tubes (8 segments, a, b, c, d, e, f, g, dp), and the LED nixie tubes may be connected in a common male type or a common female type.
Example 1
Fig. 2 shows a dynamic scanning method for an LED nixie tube provided in thisembodiment 1, where the method includes:
s101: and identifying the brightness display gear of the LED nixie tube, and acquiring the standard segment display quantity and the standard scanning frequency of the brightness display gear.
In this embodiment, according to different brightness display requirements, the LED nixie tube may have a plurality of different brightness display positions, and according to the plurality of different brightness display positions, the scanning frequency of the LED nixie tube may be in a range, and the range may use fL~fHIs defined wherein fHThe scanning frequency, f, of the gear for maximum brightnessLThe scanning frequency of the gear is displayed for the darkest brightness.
The switching period of a COM port can be obtained corresponding to different scanning frequencies, that is, the opening time of the COM port corresponds to fHCOM port opening time t of a highest brightness display gear can be obtainedHCorresponds to fLThe COM port opening time t of the darkest brightness display gear can be obtainedLFurther, the opening time of a COM port between the highest brightness display gear and the darkest brightness display gear can be obtainedRange tH~tL。
For example, the scanning frequency of the LED nixie tube can be between 80Hz and 500Hz, wherein the scanning frequency f of the darkest brightness display gear positionLAt 80Hz, the scanning frequency f of the highest brightness display gearHIs 500 Hz. Therefore, the on-time (namely the switching period of each COM port) of each COM port ranges from 3.125ms to 0.5ms, wherein the on-time t of the COM port of the darkest brightness display gear positionLThe COM port opening time t is 3.125ms and the highest brightness display gearHIs 0.5 ms.
If the number of the brightness display gears of the LED nixie tube is X, and it is assumed that the scanning frequency interval between the two display brightness gears is uniformly set, the set scanning frequency of the ith display brightness is defined as the scanning frequency when 8 segments are all displayed under the ith gear, and then the set scanning frequency (Hz) of the ith display brightness is:
fi.set=fL+(fH-fL)/(X-1)*(i-1);
setting the opening time (ms) of a COM port of the ith-level display brightness as follows:
ti.set=1/fi.set/4*1000。
for example, in the frequency range of 80Hz to 500Hz, if the brightness display position of the LED nixie tube is 5 positions and the scanning frequency intervals of the 5 positions are uniformly arranged, the set scanning frequencies of the 1-5 positions display brightness are 80Hz, 185Hz, 290Hz, 395Hz and 500Hz in sequence, and the COM port set opening times of the 1-5 positions display brightness are 3.125ms, 1.351ms, 0.862ms, 0.633ms and 0.5ms in sequence.
Setting the display quantity of the standard segments as Y, wherein Y can be any number from 1 to 8, and the standard scanning frequency (Hz) of the display brightness of the ith gear is as follows:
fi.sta=fi.set*(8/Y);
the COM port standard opening time (ms) of the ith-grade display brightness is as follows:
ti.sta=1/fi.sta/4*1000。
for example, if the number of brightness display steps of the LED nixie tube includes 5 steps, the brightness display step of the LED nixie tube is set to 3 steps, and the standard segment display number is set to 8, the standard scanning frequency (Hz) of the LED nixie tube is:
fsta=f3.set*(Y/X)=290*(8/8)=290Hz;
the standard COM port opening time (ms) of the LED nixie tube is as follows:
tsta=1/fsta=1/290/4*1000=3.448ms。
s102: and detecting the font displayed by the LED nixie tube, and calculating the actual segment display quantity of the LED nixie tube.
The character type displayed by the LED nixie tube can be 0-F characters and other special characters and decimal points, and the actual segment display quantity of the character type displayed by the LED nixie tube is set to be Z. Referring to FIG. 1c, the actual segment display number of the main font type can be as shown in Table 1.
TABLE 1 actual segment display quantity of Main display type
As shown in fig. 1c and table 1, if the font displayed by the LED nixie tube is 1, the actual segment display quantity Z of the LED nixie tube can be calculated to be 2.
S103: and adjusting the actual scanning frequency of the LED nixie tube according to the ratio of the actual segment display quantity of the LED nixie tube to the standard segment display quantity.
If the actual segment display quantity of the LED nixie tube is Z, the standard segment display quantity is Y, and the brightness display gear of the LED nixie tube is i gear, as mentioned above, the actual scanning frequency (Hz) of the LED nixie tube can be adjusted as follows:
f=fi.sta*(Y/Z)=fi.set*(8/Y)*(Y/Z)=[fL+(fH-fL)/(X-1)*(i-1)]*(8/Y)*(Y/Z);
the COM port opening time (ms) of the LED nixie tube can be adjusted as follows:
t=1/f/4*1000。
for example, as shown in fig. 1c, if the LED nixie tube display is 1200, and the number of brightness display steps of the LED nixie tube includes 5 steps, the brightness display step of the LED nixie tube is set to 3 steps, and the standard segment display number is set to 8.
The font displayed by the first LED nixie tube is 1, the actual segment display number is 2, and the actual scanning frequency (Hz) of the first LED nixie tube is:
f1=f3.sta*(Y/Z)=[fL+(fH-fL)/(X-1)*(i-1)]*(8/Y)*(Y/Z)=1160Hz;
the actual COM port on-time (ms) of the first LED nixie tube is:
t1=1/f1/4*1000=0.216ms。
the second LED nixie tube displays a font of 2, the actual segment display number is 5, and the actual scanning frequency (Hz) of the second LED nixie tube is:
f2=f3.sta*(Y/Z)=[fL+(fH-fL)/(X-1)*(i-1)]*(8/Y)*(Y/Z)=464Hz;
the actual COM port on-time (ms) of the second LED nixie tube is:
t2=1/f2/4*1000=0.539ms。
the font displayed by the third LED nixie tube is 0, the actual segment display number is 6, and the actual scanning frequency (Hz) of the third LED nixie tube is:
f3=f3.sta*(Y/Z)=[fL+(fH-fL)/(X-1)*(i-1)]*(8/Y)*(Y/Z)=386.67Hz;
the actual COM port on-time (ms) of the second LED nixie tube is:
t3=1/f3/4*1000=0.647ms。
the font displayed by the fourth LED nixie tube is 0, the actual segment display number is 6, and the actual scanning frequency (Hz) of the third LED nixie tube is:
f4=f3.sta*(Y/Z)=[fL+(fH-fL)/(X-1)*(i-1)]*(8/Y)*(Y/Z)=386.67Hz;
the actual COM port on-time (ms) of the second LED nixie tube is:
t4=1/f3/4*1000=0.647ms。
s104: and scanning the LED nixie tube according to the adjusted actual scanning frequency.
As described in step S103, 4 adjusted actual scanning frequencies f are obtained for the LED nixie tubes with 4 COM ports respectively1、f2、f3、f4Then the step is executed with 4 actual scanning frequencies f1、f2、f3、f4The corresponding 4 COM ports are scanned.
In this embodiment, 4 actual scanning frequencies f1、f2、f3、f4Will correspond to 4 on-times t1、t2、t3、t4. As an example in step S103, there are 4 on-times t1=0.216ms、t2=0.539ms、t3=0.647ms、t4If the PWM duty ratios of the LED nixie tubes corresponding to the 4 COM ports are 10.52%, 26.32%, 31.58% and 31.58% respectively, which is obtained when the time is 0.647ms, the relationship between the ratio of the actual segment display number of the LED nixie tubes corresponding to the 4 COM ports and the PWM duty ratio is 2: 5: 6: 10.52%: 26.32%: 31.58%: 31.58 percent. Therefore, the power obtained by each segment displayed by the LED nixie tube corresponding to the four COM ports is equal, and the display brightness of the LED nixie tube can be more uniform.
Example 2
Fig. 3 shows a dynamic scanning method for an LED nixie tube provided in thisembodiment 2, where the method includes:
s201: and identifying the brightness display gear of the LED nixie tube, and acquiring the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the brightness display gear.
The definitions and technical features of the brightness display gear, the standard scanning frequency, and the standard segment display quantity of the LED nixie tube can be found in step S101 inembodiment 1.
S202: and detecting the font displayed by the current COM port, and calculating the actual segment display quantity of the current COM port.
The definitions and technical features of the fonts displayed by the COM port and the actual segment display numbers can be referred to step S102 inembodiment 1.
S203: and adjusting the actual scanning frequency of the current COM port according to the ratio of the actual segment display quantity of the current COM port to the standard segment display quantity of a single COM port.
The adjustment method of the actual scan frequency of the COM port can be referred to as step S103 inembodiment 1.
S204: and scanning the current COM port according to the adjusted actual scanning frequency, and switching to the next COM port after the scanning of the current COM port is finished.
In this embodiment, 4 COM ports are scanned in turn, and after the previous COM port is scanned, the COM port is switched to the next COM port for scanning.
S205: and circulating S202-S204 steps while scanning and switching until the LED nixie tube display is finished.
In this step, while the two COM ports are switched, the font displayed by the next COM port is detected, and the actual segment display number of the next COM port is calculated, and the execution manner of the steps of detecting and calculating is the same as that of the step S202. And after the steps of detection and calculation are finished, the steps S203 and S204 are sequentially executed until the LED nixie tube display is finished.
Example 2.1
In this embodiment, which is an extended embodiment ofembodiment 2, fig. 4 shows a dynamic scanning method for an LED nixie tube provided in embodiment 2.1, where the method includes:
s201: and identifying the brightness display gear of the LED nixie tube, and acquiring the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the brightness display gear.
S202: and detecting the font displayed by the current COM port, and calculating the actual segment display quantity of the current COM port.
S203: and adjusting the actual scanning frequency of the current COM port according to the ratio of the actual segment display quantity of the current COM port to the standard segment display quantity of a single COM port.
S204: and scanning the current COM port according to the adjusted actual scanning frequency, and switching to the next COM port after the scanning of the current COM port is finished.
Steps S201 to S204 in this embodiment are the same as steps S201 to S204 inembodiment 2.
S205: and circulating the steps S202-S204 while switching the scanning until all COM ports finish scanning.
S206: and identifying the brightness display gear of the LED nixie tube again, and judging whether the brightness display gear of the LED nixie tube is changed.
The definition and technical features of the brightness display gear of the LED nixie tube can be seen in step S101 inembodiment 1.
S207: if the brightness display gear of the LED nixie tube is not changed, the loop S202-S205 is continuously executed.
S208: if the brightness display gear of the LED nixie tube is changed, the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the new brightness display gear are obtained, and the loop S202-S205 is continuously executed.
S209: and circulating S206-S208 until the LED nixie tube display is finished.
Example 3
Fig. 5 shows a dynamic scanning method for an LED nixie tube provided in this embodiment 3, where the method includes:
s301: and identifying the brightness display gear of the LED nixie tube, and acquiring the standard scanning frequency of a single COM port and the standard segment display quantity of the single COM port under the brightness display gear.
The definitions and technical features of the brightness display gear, the standard scanning frequency, and the standard segment display quantity of the LED nixie tube can be found in step S101 inembodiment 1.
S302: and detecting the font displayed by each COM port, and calculating the actual segment display quantity of each COM port.
The definitions and technical features of the fonts displayed by the COM port and the actual segment display numbers can be referred to step S102 inembodiment 1.
S303: and adjusting the actual scanning frequency of each COM port according to the ratio of the actual segment display quantity of each COM port to the standard segment display quantity of a single COM port.
The adjustment method of the actual scan frequency of the COM port can be referred to as step S103 inembodiment 1.
S304: and scanning the corresponding COM port according to the adjusted actual scanning frequency of each COM port until the display of the LED nixie tube is finished.
Example 3.1
This embodiment is an extended embodiment of embodiment 3, and fig. 6 shows a dynamic scanning method for an LED nixie tube provided in this embodiment 3.1, where the method includes:
s301: and identifying the brightness display gear of the LED nixie tube, and acquiring the standard scanning frequency of a single COM port and the standard segment display quantity of the single COM port under the brightness display gear.
The definitions and technical features of the brightness display gear, the standard scanning frequency, and the standard segment display quantity of the LED nixie tube can be found in step S101 inembodiment 1.
S302: and detecting the font displayed by each COM port, and calculating the actual segment display quantity of each COM port.
The definitions and technical features of the fonts displayed by the COM port and the actual segment display numbers can be referred to step S102 inembodiment 1.
S303: and adjusting the actual scanning frequency of each COM port according to the ratio of the actual segment display quantity of each COM port to the standard segment display quantity of a single COM port.
The adjustment method of the actual scan frequency of the COM port can be referred to as step S103 inembodiment 1.
S304: and scanning the corresponding COM port according to the adjusted actual scanning frequency of each COM port until all COM ports are scanned.
S305: and identifying the brightness display gear of the LED nixie tube again, and judging whether the brightness display gear of the LED nixie tube is changed.
The definition and technical features of the brightness display gear of the LED nixie tube can be seen in step S101 inembodiment 1.
S306: if the brightness display gear of the LED nixie tube is not changed, the loop S302-S304 is continuously executed.
S307: if the brightness display gear of the LED nixie tube is changed, the standard segment display quantity of a single COM port and the standard scanning frequency of the single COM port under the new brightness display gear are obtained, and the loop S302-S304 is continuously executed.
S308: and the steps S305 to S307 are circulated until the LED nixie tube display is finished.
Example 4
Fig. 7 shows a schematic structural diagram of the dynamic LED digitaltube scanning device 10 provided in this embodiment 4, where the dynamic LED digitaltube scanning device 10 includes anidentification module 11, anacquisition module 12, adetection module 13, acalculation module 14, and anadjustment module 15.
Theidentification module 11 is configured to identify a brightness display shift of the LED nixie tube, wherein the definition and technical features of the brightness display shift can be referred to in step S101 inembodiment 1.
The obtainingmodule 12 is configured to obtain a standard segment display quantity and a standard scanning frequency of the LED nixie tube in the brightness display gear after the identifyingmodule 11 identifies the brightness display gear of the LED nixie tube, where definitions and technical features of the standard segment display quantity and the standard scanning frequency may be referred to in step S101 inembodiment 1.
The standard segment display quantity and the standard scan frequency may be obtained by obtaining the standard segment display quantity of a single COM port and the standard scan frequency of the single COM port.
The detectingmodule 13 is configured to detect a font displayed by the LED nixie tube, wherein the definition and technical features of the font displayed by the COM port can be referred to as step S102 inembodiment 1.
The detection mode of the font displayed by the LED nixie tube can comprise the following steps:
detecting the font displayed by the current COM port, and detecting the font displayed by the next COM port when the COM port is scanned and switched; or,
and detecting the font displayed by each COM port, and circularly detecting the font displayed by each COM port after all COM ports are scanned under the condition that circulation is needed.
The calculatingmodule 14 is configured to calculate the actual segment display quantity of the LED nixie tube, and the definition and technical features of the actual segment display quantity can be seen in step S102 inembodiment 1.
The calculation method of the actual segment display quantity displayed by the LED nixie tube can comprise the following steps:
calculating the actual segment display quantity of the current COM port, and calculating the actual segment display quantity of the next COM port when the COM port is scanned and switched; or,
and calculating the actual segment display quantity of each COM port, and circularly calculating the actual segment display quantity of each COM port after all COM ports complete scanning under the condition of needing circulation.
The adjustingmodule 15 is configured to adjust the actual scanning frequency of the LED nixie tube according to a ratio of the actual segment display quantity of the LED nixie tube to the standard segment display quantity, where the method for adjusting the actual scanning frequency of the COM port can refer to step S103 inembodiment 1.
The adjustment mode of the actual scanning frequency of the LED nixie tube may include:
adjusting the actual scanning frequency of the current COM port according to the ratio of the actual segment display quantity of the current COM port to the standard segment display quantity of a single COM port; or,
and adjusting the actual scanning frequency of each COM port according to the ratio of the actual segment display quantity of each COM port to the standard segment display quantity of a single COM port.
Example 4.1
This embodiment is an extended embodiment of embodiment 4, and fig. 8 illustrates a schematic structural diagram of the dynamic LED digitaltube scanning device 10 provided in this embodiment 4.1, where the dynamic LED digitaltube scanning device 10 includes anidentification module 11, anacquisition module 12, adetection module 13, acalculation module 14, anadjustment module 15, and adetermination module 16.
In this embodiment, the functions and technical features of theidentification module 11, theacquisition module 12, thedetection module 13, thecalculation module 14 and theadjustment module 15 can be referred to in embodiment 4.
The judgingmodule 16 is used for judging whether the brightness display gear of the LED nixie tube is changed. When therecognition module 11 recognizes the brightness display gear of the LED nixie tube again, thejudgment module 16 is used to judge whether the brightness display gear of the LED nixie tube is changed.
If the determiningmodule 16 determines that the brightness display gear of the LED nixie tube has not changed, the dynamic LED nixietube scanning device 10 directly continues to execute steps S202-S207 in embodiment 2.1, or directly continues to execute steps S301-S305 in embodiment 3.1.
If the determiningmodule 16 determines that the brightness display gear of the LED nixie tube is changed, the obtainingmodule 12 obtains the standard segment display quantity and the standard scanning frequency in the new brightness display gear of the LED nixie tube, and continues to execute the steps S202 to S207 in embodiment 2.1 or continues to execute the steps S301 to S305 in embodiment 3.1. The obtainingmodule 12 can obtain the data according to embodiment 4.
Example 5
Fig. 9 is a schematic structural diagram of an electronic device provided in this embodiment 5.
In the present embodiment, theelectronic device 20 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and its hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
In this embodiment, theelectronic device 20 may be, but is not limited to, any electronic product that can perform human-computer interaction with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), an intelligent wearable device, and the like.
In this embodiment, theelectronic device 20 may also be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices.
In this embodiment, the Network where theelectronic device 20 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
In this embodiment, theelectronic device 20 includes, but is not limited to, amemory 22, aprocessor 21, and acomputer program 23, such as an LED digital tube dynamic scanning program, stored in thememory 22 and executable on theprocessor 21.
In this embodiment, theProcessor 21 may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, and theprocessor 21 is an operation core and a control center of theelectronic device 20, and is connected to various parts of theelectronic device 20 by various interfaces and lines, and executes an operating system of theelectronic device 20 and various installed application programs, program codes, and the like.
In this embodiment, theprocessor 21 executes an operating system of theelectronic device 20 and various installed application programs. Theprocessor 21 executes the application program to implement the steps of the LED nixie tube dynamic scanning method in the above embodiments, such as steps S101, S102, S103, and S104 ofembodiment 1 shown in fig. 2, steps S201, S202, S203, S204, and S205 ofembodiment 2 shown in fig. 3, and steps S201, S202, S203, S204, and S205 of embodiment 4 shown in fig. 4
Steps S201, S202, S203, S204, S205, S206, S207, S208, S209 of embodiment 2.1, such as steps S301, S302, S303, S304 of embodiment 3 shown in fig. 5, or steps S301, S302, S303, S304, S305, S306, S307, S308 of embodiment 3.1 shown in fig. 6.
In this embodiment, thememory 22 may be used for storing thecomputer program 23 and/or the module, and theprocessor 21 may implement various functions of theelectronic device 20 by running or executing the computer program and/or the module stored in thememory 22 and calling data stored in thememory 22. Thememory 22 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the cellular phone, and the like. Further, thememory 22 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.
In this embodiment, thememory 22 may be an external memory and/or an internal memory of theelectronic device 20. Further, thememory 22 may be a circuit with a storage function, such as fifo (first InFirst out), which is not in physical form in the integrated circuit. Alternatively, thememory 22 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method shown inembodiment 1,embodiment 2, embodiment 2.1, embodiment 3, or/and embodiment 3.1. For example, steps S101, S102, S103, S104 ofembodiment 1 shown in fig. 2, steps S201, S202, S203, S204, S205 ofembodiment 2 shown in fig. 3, steps S201, S202, S203, S204, S205, S206, S207, S208, S209 of embodiment 2.1 shown in fig. 4, steps S301, S302, S303, S304 of embodiment 3 shown in fig. 5, or steps S301, S302, S303, S304 of embodiment 3.1 shown in fig. 6 are exemplified.
In this embodiment, the integrated module/unit of theelectronic device 20 may be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In this embodiment, the computer-readable storage medium is applicable to any embodiment of the above method, and is not described herein again.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.