Multi-key and multi-LED drive circuit
By cross-connecting the key unit with the IO port in the multi-key multi-LED driving circuit, it is possible to drive multiple keys and lighting units at the same time using fewer IO ports, solving the problem of excessive chip pin resources and cables, reducing manufacturing cost and integration difficulty.
Patent Information
- Application Number
- CN202422365398.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2034-09-26
AI Technical Summary
Existing multi-button and multi-LED electronic products require a large amount of chip pin resources and cable count, resulting in high manufacturing costs and difficult integration.
By connecting one end of the key unit to one IO port, the other end is connected to another IO port, and connecting to the microcontroller and lighting unit through the IO port, the simultaneous driving of multiple key units and lighting units is realized, reducing the use of IO ports.
It saves the chip pin resources of the microcontroller and the number of circuit board cables, reducing manufacturing costs and integration difficulties.
Smart Images

Figure CN223157068U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of power electronics, in particular to a driving circuit for multiple buttons and multiple LEDs. Background Art
[0002] Nowadays, electronic products with multiple buttons and multiple LEDs are widely used in all walks of life. Since this electronic product integrates multiple buttons and LEDs, it is necessary to rely on more chip pin resources to process various input and output signals, and at the same time, a larger number of cable assemblies are required.
[0003] However, for micro devices, the number of pins of the chip is relatively scarce. At the same time, increasing the number of cable assemblies will increase the manufacturing cost and integration difficulty of the micro device. Summary of the Utility Model
[0004] The purpose of the utility model is to provide a driving circuit for multiple buttons and multiple LEDs to solve the technical problem of excessive single-chip microcomputer chip pin resources required by the existing driving circuit. The preferred technical solutions provided by the utility model can produce many technical effects, which will be elaborated below.
[0005] To achieve the above purpose, the utility model provides the following technical solutions:
[0006] A driving circuit for multiple buttons and multiple LEDs provided by the utility model includes: a plurality of IO ports, a lighting unit, and one or more button units; one end of the button unit is connected to one of the IO ports, the other end of the button unit is connected to another IO port, and the IO port is connected to the lighting unit; the plurality of IO ports are used to be connected to a single-chip microcomputer, and the single-chip microcomputer detects the state of the button unit and controls the on-off state of the lighting unit through the IO port.
[0007] In some embodiments, the IO ports include a first IO port P1, a second IO port P2, and a third IO port P3; the button unit includes a first button unit K1; the lighting unit includes a first lighting unit LED1, a second lighting unit LED2, and a third lighting unit LED3; one end of the first button unit K1 is connected to the first IO port P1, and the other end of the first button unit K1 is connected to the second IO port P2; one end of the first lighting unit LED1 and one end of the third lighting unit LED3 are connected to the second IO port P2, and the other end of the first lighting unit LED1 and the other end of the third lighting unit LED3 are connected to the third IO port P3; one end of the second lighting unit LED2 is connected to the first IO port P1, and the other end of the second lighting unit LED2 is connected to the third IO port P3.
[0008] In some embodiments, the driving circuit includes a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4; one end of the first resistor R1 is connected to both the first IO port P1 and one end of the first key unit K1, and the other end of the first resistor R1 is connected to the negative electrode of the second lighting unit LED2; one end of the second resistor R2 is connected to the other end of the first key unit K1, and the other end of the second resistor R2 is connected to the second IO port P2; one end of the third resistor R3 is connected to the second IO port P2, and the other end of the third resistor R3 is connected to both the negative electrode of the first lighting unit LED1 and the positive electrode of the third lighting unit LED3; one end of the fourth resistor R4 is connected to the third IO port P3, and the other end of the fourth resistor R4 is connected to the positive electrode of the first lighting unit LED1, the negative electrode of the third lighting unit LED3, and the positive electrode of the second lighting unit LED2.
[0009] In some embodiments, the resistance values of the first resistor R1, the third resistor R3, and the fourth resistor R4 are all 100 ohms; the resistance value of the second resistor R2 is 10K ohms.
[0010] In some embodiments, the key unit further includes a second key unit; one end of the second key unit is connected to the first IO port P1, and the other end of the second key unit is connected to the third IO port P3.
[0011] In some embodiments, the IO ports include a fourth IO port P4, a fifth IO port P5, a sixth IO port P6, and a seventh IO port P7; the key unit includes a third key unit K3, a fourth key unit K4, and a fifth key unit K5; one end of the third key unit K3 is connected to the fourth IO port P4, and the other end of the third key unit K3 is connected to the fifth IO port P5; one end of the fourth key unit K4 is connected to the fourth IO port P4, and the other end of the fourth key unit K4 is connected to the sixth IO port P6; one end of the fifth key unit K5 is connected to the fourth IO port P4, and the other end of the fifth key unit K5 is connected to the seventh IO port P7.
[0012] In some embodiments, the lighting unit includes a fourth lighting unit LED4, a fifth lighting unit LED5, a sixth lighting unit LED6, a seventh lighting unit LED7, an eighth lighting unit LED8, and a ninth lighting unit LED9; one end of the fourth lighting unit LED4 and one end of the sixth lighting unit LED6 are connected to the fifth IO port P5, and the other end of the fourth lighting unit LED4 and the other end of the sixth lighting unit LED6 are connected to the sixth IO port P6; one end of the fifth lighting unit LED5 and one end of the seventh lighting unit LED7 are connected to the fifth IO port P5, and the other end of the fifth lighting unit LED5 and the other end of the seventh lighting unit LED7 are connected to the seventh IO port P7; one end of the eighth lighting unit LED8 and one end of the ninth lighting unit LED9 are connected to the sixth IO port P6, and the other end of the eighth lighting unit LED8 and the other end of the ninth lighting unit LED9 are connected to the seventh IO port P7.
[0013] In some embodiments, the drive circuit includes a seventh resistor R7, an eighth resistor R8, and a ninth resistor R9; one end of the seventh resistor R7 is connected to one end of the third button unit K3, the other end of the seventh resistor R7 is connected to the fifth IO port P5, wherein the other end of the third button unit K3 is connected to the fourth IO port P4; one end of the eighth resistor R8 is connected to one end of the fourth button unit K4, the other end of the eighth resistor R8 is connected to the sixth IO port P6, wherein the other end of the fourth button unit K4 is connected to the fourth IO port P4; one end of the ninth resistor R9 is connected to one end of the fifth button unit K5, the other end of the ninth resistor R9 is connected to the seventh IO port P7, wherein the other end of the fifth button unit K5 is connected to the fourth IO port P4.
[0014] In some embodiments, the driving circuit further includes a thirteenth resistor R13, a sixteenth resistor R16, and a seventeenth resistor R17; one end of the thirteenth resistor R13 is connected to the fifth IO port P5, and the other end of the thirteenth resistor R13 is connected to the negative electrode of the fourth lighting unit LED4, the positive electrode of the sixth lighting unit LED6, the negative electrode of the seventh lighting unit LED7, and the positive electrode of the fifth lighting unit LED5; one end of the sixteenth resistor R16 is connected to the sixth IO port P6, and the other end of the sixteenth resistor R16 is connected to the negative electrode of the ninth lighting unit LED9, the positive electrode of the eighth lighting unit LED8, the positive electrode of the fourth lighting unit LED4, and the negative electrode of the sixth lighting unit LED6; one end of the seventeenth resistor R17 is connected to the seventh IO port P7, and the other end of the seventeenth resistor R17 is connected to the positive electrode of the ninth lighting unit LED9, the negative electrode of the eighth lighting unit LED8, the positive electrode of the seventh lighting unit LED7, and the negative electrode of the fifth lighting unit LED5.
[0015] In some embodiments, the resistance values of the seventh resistor R7, the eighth resistor R8, and the ninth resistor R9 are all 10K ohms; the resistance values of the thirteenth resistor R13, the sixteenth resistor R16, and the seventeenth resistor R17 are all 100 ohms.
[0016] Implementing one of the technical solutions in the above technical solutions of the present invention has the following advantages or beneficial effects: In the present invention, one end of the key unit is connected to an IO port, and the other end of the key unit is connected to another IO port. At the same time, the IO port is connected to the single-chip microcomputer and the lighting unit. Since the single-chip microcomputer of the present invention is connected to the lighting unit and the key unit through the IO port at the same time, compared with the method in which the lighting unit and the key unit are in one-to-one correspondence with the IO port, fewer IO ports can be used to drive the key unit and the lighting unit at the same time, which can save the chip pin resources of the single-chip microcomputer and reduce the number of wire connections on the circuit board, thereby reducing the manufacturing cost and integration difficulty. Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained according to these drawings. In the drawings:
[0018] Figure 1 is a schematic diagram of an embodiment of the driving circuit of the embodiment of the present invention;
[0019] Figure 2It is a schematic diagram of another embodiment of the drive circuit according to the embodiment of the present utility model. Detailed implementation manners
[0020] In order to make the objectives, technical solutions and advantages of the present utility model clearer and more understandable, various exemplary embodiments to be described hereinafter will refer to the corresponding drawings, which form a part of the exemplary embodiments and describe various exemplary embodiments that may be adopted to implement the present utility model. Unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. It should be understood that they are merely examples of processes, methods, devices, etc. consistent with some aspects of the present utility model disclosed in detail in the appended claims. Other embodiments may also be used, or structural and functional modifications may be made to the embodiments listed herein without departing from the scope and essence of the present utility model.
[0021] In the description of the present utility model, it should be understood that the terms "center", "longitudinal", "lateral", etc. indicate the orientation or positional relationship based on the orientation or position shown in the drawings, and are only for the convenience of describing the present utility model and simplifying the description, rather than indicating or implying that the elements referred to must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. The meaning of the term "plurality" is two or more. The terms "connected" and "coupled" should be understood in a broad sense. For example, they may be fixedly connected, detachably connected, integrally connected, mechanically connected, electrically connected, communicatively connected, directly connected, indirectly connected through an intermediate medium, and may be the internal communication of two elements or the interaction relationship between two elements. The term " / and" includes any and all combinations of one or more of the related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present utility model may be understood according to specific circumstances.
[0022] In order to illustrate the technical solutions described in the present utility model, the following will be described through specific embodiments, and only the parts related to the embodiments of the present utility model are shown.
[0023] As Figure 1 shown, the present utility model provides a drive circuit for multiple buttons and multiple LEDs, including: a plurality of IO ports, a lighting unit, and one or more button units.
[0024] In some embodiments, the IO port can be used to connect to a microcontroller, and the microcontroller can detect the status of the key unit and control the on / off state of the lighting unit through the IO port. Specifically, the microcontroller can detect whether the key unit is pressed through the IO port and control the lighting unit to emit light or go out. The lighting unit can be an LED lamp.
[0025] In some embodiments, one end of the key unit can be connected to an IO port, the other end of the key unit can be connected to another IO port, and the IO port can be connected to the lighting unit.
[0026] In some embodiments, as Figure 1 shown, the IO port can include a first IO port P1, a second IO port P2, and a third IO port P3; the key unit can include a first key unit K1; the lighting unit can include a first lighting unit LED1, a second lighting unit LED2, and a third lighting unit LED3.
[0027] In some embodiments, one end of the first key unit K1 can be connected to the first IO port P1, and the other end of the first key unit K1 is connected to the second IO port P2. One end of the first lighting unit LED1 and one end of the third lighting unit LED3 can be connected to the second IO port P2, and the other end of the first lighting unit LED1 and the other end of the third lighting unit LED3 can be connected to the third IO port P3. One end of the second lighting unit LED2 can be connected to the first IO port P1, and the other end of the second lighting unit LED2 can be connected to the third IO port P3.
[0028] In some embodiments, as Figure 1 shown, the drive circuit can include a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4.
[0029] In some embodiments, one end of the first resistor R1 can be connected to both the first IO port P1 and one end of the first key unit K1, and the other end of the first resistor R1 can be connected to the negative electrode of the second lighting unit LED2.
[0030] In some embodiments, one end of the second resistor R2 can be connected to the other end of the first key unit K1, and the other end of the second resistor R2 can be connected to the second IO port P2.
[0031] In some embodiments, one end of the third resistor R3 can be connected to the second IO port P2, and the other end of the third resistor R3 can be connected to both the negative electrode of the first lighting unit LED1 and the positive electrode of the third lighting unit LED3.
[0032] In some embodiments, one end of the fourth resistor R4 can be connected to the third IO port P3, and the other end of the fourth resistor R4 can be connected to the positive electrode of the first lighting unit LED1, the negative electrode of the third lighting unit LED3, and the positive electrode of the second lighting unit LED2.
[0033] In some embodiments, the resistance values of the first resistor R1, the third resistor R3, and the fourth resistor R4 can all be 100 ohms; the resistance value of the second resistor R2 can be 10K ohms. The first resistor R1, the third resistor R3, and the fourth resistor R4 can be used for current limiting.
[0034] In some embodiments, the single-chip microcomputer can input a high-level signal to the third IO port P3 and a low-level signal to the second IO port P2 to make the first lighting unit LED1 emit light; the single-chip microcomputer can input a high-level signal to the third IO port P3 and a low-level signal to the first IO port P1 to make the second lighting unit LED2 emit light; the single-chip microcomputer can input a low-level signal to the third IO port P3 and a high-level signal to the second IO port P2 to make the third lighting unit LED3 emit light.
[0035] As described above, the utility model can use three IO ports to control a key unit and three lighting units simultaneously, thereby saving the number of chip pins of the single-chip microcomputer.
[0036] In some embodiments, the key unit can further include a second key unit (not shown in the figure). One end of the second key unit can be connected to the first IO port P1, and the other end of the second key unit can be connected to the third IO port P3. Thus, a key unit can be added without increasing the IO ports, that is, the drive circuit of the utility model can drive two key units and three lighting units simultaneously.
[0037] The utility model can control more key units and lighting units by increasing the IO ports to meet the actual requirements for the key units and lighting units. The following will be described in detail in conjunction with Figure 2 for a detailed description.
[0038] In some embodiments, as Figure 2 shown, the IO ports can include a fourth IO port P4, a fifth IO port P5, a sixth IO port P6, and a seventh IO port P7. The key unit can include a third key unit K3, a fourth key unit K4, and a fifth key unit K5.
[0039] In some embodiments, one end of the third key unit K3 can be connected to the fourth IO port P4, and the other end of the third key unit K3 can be connected to the fifth IO port P5. One end of the fourth key unit K4 can be connected to the fourth IO port P4, and the other end of the fourth key unit K4 can be connected to the sixth IO port P6. One end of the fifth key unit K5 can be connected to the fourth IO port P4, and the other end of the fifth key unit K5 can be connected to the seventh IO port P7.
[0040] In some embodiments, as Figure 2 shown, the lighting unit can include a fourth lighting unit LED4, a fifth lighting unit LED5, a sixth lighting unit LED6, a seventh lighting unit LED7, an eighth lighting unit LED8, and a ninth lighting unit LED9.
[0041] In some embodiments, as Figure 2 shown, one end of the fourth lighting unit LED4 and one end of the sixth lighting unit LED6 can be connected to the fifth IO port P5, and the other end of the fourth lighting unit LED4 and the other end of the sixth lighting unit LED6 can be connected to the sixth IO port P6. One end of the fifth lighting unit LED5 and one end of the seventh lighting unit LED7 can be connected to the fifth IO port P5, and the other end of the fifth lighting unit LED5 and the other end of the seventh lighting unit LED7 can be connected to the seventh IO port P7. One end of the eighth lighting unit LED8 and one end of the ninth lighting unit LED9 can be connected to the sixth IO port P6, and the other end of the eighth lighting unit LED8 and the other end of the ninth lighting unit LED9 can be connected to the seventh IO port P7.
[0042] In some embodiments, as Figure 2 shown, the drive circuit can include a seventh resistor R7, an eighth resistor R8, and a ninth resistor R9.
[0043] In some embodiments, one end of the seventh resistor R7 can be connected to one end of the third key unit K3, and the other end of the seventh resistor R7 can be connected to the fifth IO port P5, wherein the other end of the third key unit K3 can be connected to the fourth IO port P4.
[0044] In some embodiments, one end of the eighth resistor R8 can be connected to one end of the fourth key unit K4, and the other end of the eighth resistor R8 can be connected to the sixth IO port P6, wherein the other end of the fourth key unit K4 can be connected to the fourth IO port P4.
[0045] In some embodiments, one end of the ninth resistor R9 can be connected to one end of the fifth key unit K5, and the other end of the ninth resistor R9 can be connected to the seventh IO port P7, where the other end of the fifth key unit K5 can be connected to the fourth IO port P4.
[0046] In some embodiments, as Figure 2 shown, the driving circuit can further include a thirteenth resistor R13, a sixteenth resistor R16, and a seventeenth resistor R17.
[0047] In some embodiments, one end of the thirteenth resistor R13 can be connected to the fifth IO port P5, and the other end of the thirteenth resistor R13 can be connected to the negative electrode of the fourth lighting unit LED4, the positive electrode of the sixth lighting unit LED6, the negative electrode of the seventh lighting unit LED7, and the positive electrode of the fifth lighting unit LED5.
[0048] In some embodiments, one end of the sixteenth resistor R16 can be connected to the sixth IO port P6, and the other end of the sixteenth resistor R16 can be connected to the negative electrode of the ninth lighting unit LED9, the positive electrode of the eighth lighting unit LED8, the positive electrode of the fourth lighting unit LED4, and the negative electrode of the sixth lighting unit LED6.
[0049] In some embodiments, one end of the seventeenth resistor R17 can be connected to the seventh IO port P7, and the other end of the seventeenth resistor R17 can be connected to the positive electrode of the ninth lighting unit LED9, the negative electrode of the eighth lighting unit LED8, the positive electrode of the seventh lighting unit LED7, and the negative electrode of the fifth lighting unit LED5.
[0050] In some embodiments, the single-chip microcomputer can input a high-level signal to the sixth IO port P6 and a low-level signal to the fifth IO port P5 to make the fourth lighting unit LED4 emit light; the single-chip microcomputer can input a high-level signal to the fifth IO port P5 and a low-level signal to the seventh IO port P7 to make the fifth lighting unit LED5 emit light; the single-chip microcomputer can input a high-level signal to the fifth IO port P5 and a low-level signal to the sixth IO port P6 to make the sixth lighting unit LED6 emit light; the single-chip microcomputer can input a high-level signal to the seventh IO port P7 and a low-level signal to the fifth IO port P5 to make the seventh lighting unit LED7 emit light; the single-chip microcomputer can input a high-level signal to the sixth IO port P6 and a low-level signal to the seventh IO port P7 to make the eighth lighting unit LED8 emit light; the single-chip microcomputer can input a high-level signal to the seventh IO port P7 and a low-level signal to the sixth IO port P6 to make the ninth lighting unit LED9 emit light.
[0051] In some embodiments, the resistance values of the seventh resistor R7, the eighth resistor R8, and the ninth resistor R9 can all be 10 kΩ; the resistance values of the thirteenth resistor R13, the sixteenth resistor R16, and the seventeenth resistor R17 can all be 100 Ω. The thirteenth resistor R13, the sixteenth resistor R16, and the seventeenth resistor R17 can be used for current limiting.
[0052] As described above, by adding an IO port, the present utility model can add another key unit and three lighting units to the driving circuit, that is, the present utility model can simultaneously control three key units and six lighting units based on four IO ports, thereby driving multiple key units and lighting units simultaneously with fewer IO ports.
[0053] In the present utility model, one end of the key unit is connected to an IO port, and the other end of the key unit is connected to another IO port. At the same time, the IO port is connected to the single-chip microcomputer and the lighting unit. Since the single-chip microcomputer of the present utility model is connected to the lighting unit and the key unit through the IO port simultaneously, compared with the way that the lighting unit and the key unit are in one-to-one correspondence with the IO port, it can use fewer IO ports to drive the key unit and the lighting unit simultaneously, can save the chip pin resources of the single-chip microcomputer and reduce the number of wire arrangements on the circuit board, thereby reducing the manufacturing cost and integration difficulty.
[0054] The above are only the preferred embodiments of the present utility model. Those skilled in the art know that various changes or equivalent replacements can be made to these features and embodiments without departing from the spirit and scope of the present utility model. In addition, under the teaching of the present utility model, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the present utility model. Therefore, the present utility model is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present utility model.
Claims
1. A driving circuit for multiple buttons and multiple LEDs, characterized in that, Comprising: Multiple IO ports, a lighting unit, and one or more button units; One end of the button unit is connected to one of the IO ports, and the other end of the button unit is connected to another IO port, and the IO port is connected to the lighting unit; The multiple IO ports are used to connect to a single-chip microcomputer, and the single-chip microcomputer detects the state of the button unit and controls the on / off state of the lighting unit through the IO port.
2. The driving circuit for multiple buttons and multiple LEDs according to claim 1, characterized in that The IO ports include a first IO port P1, a second IO port P2, and a third IO port P3; the button unit includes a first button unit K1; the lighting unit includes a first lighting unit LED1, a second lighting unit LED2, and a third lighting unit LED3; One end of the first button unit K1 is connected to the first IO port P1, and the other end of the first button unit K1 is connected to the second IO port P2; one end of the first lighting unit LED1 and one end of the third lighting unit LED3 are connected to the second IO port P2, and the other end of the first lighting unit LED1 and the other end of the third lighting unit LED3 are connected to the third IO port P3; one end of the second lighting unit LED2 is connected to the first IO port P1, and the other end of the second lighting unit LED2 is connected to the third IO port P3.
3. The driving circuit for multiple buttons and multiple LEDs according to claim 2, wherein The drive circuit includes a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4; One end of the first resistor R1 is connected to both the first IO port P1 and one end of the first button unit K1, and the other end of the first resistor R1 is connected to the negative electrode of the second lighting unit LED2; One end of the second resistor R2 is connected to the other end of the first button unit K1, and the other end of the second resistor R2 is connected to the second IO port P2; One end of the third resistor R3 is connected to the second IO port P2, and the other end of the third resistor R3 is connected to both the negative electrode of the first lighting unit LED1 and the positive electrode of the third lighting unit LED3; One end of the fourth resistor R4 is connected to the third IO port P3, and the other end of the fourth resistor R4 is connected to the positive electrode of the first lighting unit LED1, the negative electrode of the third lighting unit LED3, and the positive electrode of the second lighting unit LED2.
4. The driving circuit for multiple buttons and multiple LEDs according to claim 3, wherein, The resistance values of the first resistor R1, the third resistor R3, and the fourth resistor R4 are all 100 ohms; the resistance value of the second resistor R2 is 10K ohms.
5. The driving circuit for multiple buttons and multiple LEDs according to claim 2, characterized in that, The button unit further includes a second button unit; one end of the second button unit is connected to the first IO port P1, and the other end of the second button unit is connected to the third IO port P3.
6. The driving circuit for multiple buttons and multiple LEDs according to claim 1, wherein, The IO ports include a fourth IO port P4, a fifth IO port P5, a sixth IO port P6, and a seventh IO port P7; the button unit includes a third button unit K3, a fourth button unit K4, and a fifth button unit K5; One end of the third button unit K3 is connected to the fourth IO port P4, and the other end of the third button unit K3 is connected to the fifth IO port P5; one end of the fourth button unit K4 is connected to the fourth IO port P4, and the other end of the fourth button unit K4 is connected to the sixth IO port P6; one end of the fifth button unit K5 is connected to the fourth IO port P4, and the other end of the fifth button unit K5 is connected to the seventh IO port P7.
7. The driving circuit of multiple buttons and multiple LEDs according to claim 6, wherein The lighting unit includes a fourth lighting unit LED4, a fifth lighting unit LED5, a sixth lighting unit LED6, a seventh lighting unit LED7, an eighth lighting unit LED8, and a ninth lighting unit LED9; One end of the fourth lighting unit LED4 and one end of the sixth lighting unit LED6 are connected to the fifth IO port P5, and the other end of the fourth lighting unit LED4 and the other end of the sixth lighting unit LED6 are connected to the sixth IO port P6; one end of the fifth lighting unit LED5 and one end of the seventh lighting unit LED7 are connected to the fifth IO port P5, and the other end of the fifth lighting unit LED5 and the other end of the seventh lighting unit LED7 are connected to the seventh IO port P7; one end of the eighth lighting unit LED8 and one end of the ninth lighting unit LED9 are connected to the sixth IO port P6, and the other end of the eighth lighting unit LED8 and the other end of the ninth lighting unit LED9 are connected to the seventh IO port P7.
8. The driving circuit for multiple buttons and multiple LEDs according to claim 7, characterized in that, The drive circuit includes a seventh resistor R7, an eighth resistor R8, and a ninth resistor R9; One end of the seventh resistor R7 is connected to one end of the third button unit K3, and the other end of the seventh resistor R7 is connected to the fifth IO port P5, where the other end of the third button unit K3 is connected to the fourth IO port P4; One end of the eighth resistor R8 is connected to one end of the fourth button unit K4, and the other end of the eighth resistor R8 is connected to the sixth IO port P6, where the other end of the fourth button unit K4 is connected to the fourth IO port P4; One end of the ninth resistor R9 is connected to one end of the fifth button unit K5, and the other end of the ninth resistor R9 is connected to the seventh IO port P7, where the other end of the fifth button unit K5 is connected to the fourth IO port P4.
9. The driving circuit of multiple keys and multiple LEDs according to claim 8, wherein, The drive circuit further includes a thirteenth resistor R13, a sixteenth resistor R16, and a seventeenth resistor R17; One end of the thirteenth resistor R13 is connected to the fifth IO port P5, and the other end of the thirteenth resistor R13 is connected to the negative electrode of the fourth lighting unit LED4, the positive electrode of the sixth lighting unit LED6, the negative electrode of the seventh lighting unit LED7, and the positive electrode of the fifth lighting unit LED5; One end of the sixteenth resistor R16 is connected to the sixth IO port P6, and the other end of the sixteenth resistor R16 is connected to the negative electrode of the ninth lighting unit LED9, the positive electrode of the eighth lighting unit LED8, the positive electrode of the fourth lighting unit LED4, and the negative electrode of the sixth lighting unit LED6; One end of the seventeenth resistor R17 is connected to the seventh IO port P7, and the other end of the seventeenth resistor R17 is connected to the positive electrode of the ninth lighting unit LED9, the negative electrode of the eighth lighting unit LED8, the positive electrode of the seventh lighting unit LED7, and the negative electrode of the fifth lighting unit LED5.
10. The driving circuit for multiple buttons and multiple LEDs according to claim 9, wherein, The resistance values of the seventh resistor R7, the eighth resistor R8, and the ninth resistor R9 are all 10K ohms; the resistance values of the thirteenth resistor R13, the sixteenth resistor R16, and the seventeenth resistor R17 are all 100 ohms.