CN114356108A - High-grade language keyboard - Google Patents

High-grade language keyboard Download PDF

Info

Publication number
CN114356108A
CN114356108A CN202210039766.5A CN202210039766A CN114356108A CN 114356108 A CN114356108 A CN 114356108A CN 202210039766 A CN202210039766 A CN 202210039766A CN 114356108 A CN114356108 A CN 114356108A
Authority
CN
China
Prior art keywords
keyboard
level language
program
circuit board
keys
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.)
Pending
Application number
CN202210039766.5A
Other languages
Chinese (zh)
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.)
Tianjin University
Original Assignee
Tianjin University
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 Tianjin University filed Critical Tianjin University
Priority to CN202210039766.5A priority Critical patent/CN114356108A/en
Publication of CN114356108A publication Critical patent/CN114356108A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The present disclosure relates to a high-level language keyboard, comprising: the program keyboard and the conventional keyboard are integrated into a whole, the program keyboard is used for setting various program shortcut keys so as to call various high-level language sentences through the program shortcut keys, and the high-level language keyboard is manufactured by the following steps: s1 editing keyboard layout, and presetting shortcut keys of high-level language sentences corresponding to different keys; s2 determining a keyboard schematic according to the keyboard layout; s3, drawing a circuit board according to the keyboard schematic diagram; s4, manufacturing a positioning plate; s5, welding the circuit board and assembling the circuit board and the positioning plate; s6, programming a code program to the main control chip, wherein the program code comprises shortcut keys of high-level language sentences corresponding to different preset keys; s7, making keyboard firmware; s8, programming the keyboard firmware to the main control chip; s9 assembling the housing, the circuit board, the positioning plate, the key shaft and the key cap. The invention effectively improves the compiling efficiency and accuracy of the program code.

Description

High-grade language keyboard
Technical Field
The present disclosure relates to the field of keyboard technology, and more particularly, to a high-level language keyboard.
Background
With the continuous improvement of electronic technology, electronic devices are more and more popular, and for most electronic devices, a keyboard is an indispensable component. Especially in the process of software development, technicians need to write programs through a keyboard, and the high-level languages of the written programs are various, wherein sentences of some high-level languages are fixed and complex, and repeated keyboard input consumes energy and has the possibility of errors.
Disclosure of Invention
In view of the above, the embodiments of the present disclosure provide a high-level language keyboard, which can switch to a shortcut key of a different high-level language sentence through a specific key.
In a first aspect of the embodiments of the present disclosure, a high-level language keyboard is provided, which includes: the program keyboard and the conventional keyboard are integrated into a whole, the program keyboard is used for setting various program shortcut keys so as to call various high-level language sentences through the program shortcut keys, the conventional keyboard is used for executing functions of the conventional keyboard, and the high-level language keyboard is manufactured by the following steps:
s1, editing keyboard layout, and presetting shortcut keys of high-level language sentences corresponding to different keys;
s2, determining a keyboard schematic diagram according to the keyboard layout;
s3, drawing the circuit board according to the keyboard schematic diagram;
s4, manufacturing a positioning plate;
s5, welding the circuit board and assembling the circuit board and the positioning plate;
s6, programming a code program to the main control chip, wherein the program code comprises shortcut keys of high-level language sentences corresponding to different preset keys;
s7, making keyboard firmware;
s8, programming the keyboard firmware to the main control chip;
and S9, printing the keyboard shell through the 3D printer, and assembling the keyboard shell with the circuit board, the positioning plate, the key shaft and the keycap.
Compared with the prior art, the embodiment of the disclosure has the following beneficial effects:
according to the method, the shortcut keys of the high-level language sentences corresponding to different keys are stored in the main control chip in advance, so that when the method is used, the circuit board is triggered through the specific keys, the circuit board sends specific key signals to the main control chip, the main control chip identifies the key signals, the sentences of the corresponding high-level language can be called quickly, simplicity and rapidness are achieved, and the compiling efficiency and accuracy of program codes are effectively improved.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
FIG. 1 is a flow chart illustrating a method for manufacturing a high-level language keyboard according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a high-level language keyboard provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
A method for manufacturing a high-level language keyboard according to an embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings, as shown in fig. 1, the method including:
s1, editing the keyboard layout, and presetting shortcut keys of high-level language sentences corresponding to different keys, wherein the high-level language comprises python, java and c + +;
s2, determining a keyboard schematic diagram according to the keyboard layout;
s3, drawing the circuit board according to the keyboard schematic diagram;
s4, manufacturing a positioning plate;
s5, welding the circuit board and assembling the circuit board and the positioning plate;
s6, programming a code program to the main control chip, wherein the program code comprises shortcut keys of high-level language sentences corresponding to different preset keys;
s7, making keyboard firmware;
s8, programming the keyboard firmware to the main control chip;
and S9, printing the keyboard shell through the 3D printer, and assembling the keyboard shell with the circuit board, the positioning plate, the key shaft and the keycap.
Obviously, according to the high-level language keyboard manufactured through the steps, as shortcut keys of high-level language sentences corresponding to different keys are stored in the main control chip in advance, when the keyboard is used, the circuit board is triggered through the specific keys, the circuit board sends specific key signals to the main control chip, the main control chip identifies the key signals, the sentences of the corresponding high-level language can be called quickly, simplicity and quickness are achieved, and the compiling efficiency and accuracy of program codes are effectively improved.
In some embodiments, the step S1 of editing the keyboard layout and presetting shortcut keys of high-level language sentences corresponding to different keys includes:
editing a keyboard layout in a web application program, presetting shortcut keys of high-level language sentences corresponding to different keys, and simultaneously acquiring an SVG (scalable vector graphics) of the keyboard layout and RAW DATA (original DATA) of a key table;
in this embodiment, the web application may be www.keyboard-layout-editor.
Obviously, the expected keyboard layout can be quickly edited and is very convenient because the keyboard layout is edited in the web application program.
In some embodiments, the determining a keyboard schematic from the keyboard layout S2 includes:
importing the RAW DATA into a selected website to generate a wiring diagram, wherein the wiring diagram comprises a horizontal group and a vertical group so as to correspond to GPIO (general purpose input/output) ports of a main control chip;
and drawing a matrix keyboard schematic diagram.
In this embodiment, the main control chip may adopt atmega32u4 or stm32f 103; com may be kbfirm.
Obviously, the wiring diagram is generated by selecting the website, and the whole process is automatic and intelligent, so that the drawing accuracy of the schematic diagram is effectively ensured.
In some embodiments, S3, drawing the circuit board according to the keyboard schematic, includes:
importing RAW DATA into a designated website to obtain a DXF (drawing exchange) file, and importing the drawing exchange file into circuit board drawing software to serve as a reference file of key positions;
in this embodiment, the mechanical key axle and the circuit board hot plug of keyboard are connected, consequently, the installation and the dismantlement of being convenient for very much, and then the later maintenance of being convenient for.
The designated website may be builder.
In some embodiments, S4, fabricating a positioning plate includes:
according to the SVG picture of keyboard overall arrangement, adopt the circuit board preparation locating plate of same material and size to on the basis of guaranteeing that key shaft and circuit board reliably connect, effective reduce cost.
In some embodiments, S5, soldering the circuit board and assembling the circuit board with the positioning plate includes:
firstly welding patches on the circuit board, then welding the plug-in unit, and finally assembling the circuit board and the positioning plate.
When the main control chip is welded, a hot air gun, drag welding or auxiliary welding through a tin absorption wire can be used.
In some embodiments, S6, programming a code program to the main control chip, where the program code includes a shortcut key for presetting each high-level language statement corresponding to each different key, including:
writing the bootloader program file into the main control chip through an AVRISP tool, and specifically comprising the following steps:
firstly writing fuse wire position, then writing bootloader program file, finally clicking automatically to burn, when inserting USB, when the equipment manager sees that the keyboard is identified as arduino, it represents that the burning is successful.
Wherein the bootloader file can be found in the arduino path.
In some embodiments, S7, creating keyboard firmware, includes:
building a QMK compiling environment, importing RAW DATA in a selected website, and selecting a corresponding GPIO (general purpose input/output) and a main control chip;
editing key positions to generate software configuration files, and placing the configuration files into a keyboard folder for compiling keyboard firmware.
In the embodiment, the rgb lamp strip, the rotary encoder and the oled screen are started in a rules.mk file, corresponding definitions are added in a config.h file, a corresponding functional module is introduced into a keymap.c, and configured key positions are placed in the keymaps, so that the keymaps can be directly changed if the key positions are to be changed subsequently.
In some embodiments, S8, programming the keyboard firmware to the main control chip;
the firmware is imported to the main control chip through the QMKtoolbox, and the reset button is pressed.
Based on the above method for manufacturing a high-level language keyboard, as shown in fig. 2, the high-level language keyboard provided in the embodiment of the present invention includes a program keyboard 1 and a conventional keyboard 2, the program keyboard 1 and the conventional keyboard 2 are integrated into a whole, the program keyboard 1 is configured to set shortcut keys of different programs so as to call up high-level language sentences through the program shortcut keys, and the conventional keyboard 2 is configured to execute functions of the conventional keyboard.
Obviously, through the arrangement, the program sentences can be quickly called, and then the corresponding high-level language sentences can be quickly called, so that the method is simple and quick, and the compiling efficiency and accuracy of the program codes are effectively improved.
In some embodiments, the program keyboard 1 and the indicator light 3 are connected such that when a key of the program keyboard 1 is triggered, the trigger indicator light 3 is illuminated.
In some embodiments, the program keyboard 1 includes a for key, a while key, and an if key, so as to respectively correspond to the calling for statement, the while statement, and the if statement.
The program keyboard 1 may refer to the subscript for the c + + key setting:
Figure BDA0003468601550000061
it should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, and multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should 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; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (9)

1. A high-level language keyboard, comprising: the program keyboard and the conventional keyboard are integrated into a whole, the program keyboard is used for setting various program shortcut keys so as to call various high-level language sentences through the program shortcut keys, the conventional keyboard is used for executing functions of the conventional keyboard, and the high-level language keyboard is manufactured by the following steps:
s1, editing keyboard layout, and presetting shortcut keys of high-level language sentences corresponding to different keys;
s2, determining a keyboard schematic diagram according to the keyboard layout;
s3, drawing the circuit board according to the keyboard schematic diagram;
s4, manufacturing a positioning plate;
s5, welding the circuit board and assembling the circuit board and the positioning plate;
s6, programming a code program to the main control chip, wherein the program code comprises shortcut keys of high-level language sentences corresponding to different preset keys;
s7, making keyboard firmware;
s8, programming the keyboard firmware to the main control chip;
and S9, printing the keyboard shell through the 3D printer, and assembling the keyboard shell with the circuit board, the positioning plate, the key shaft and the keycap.
2. The high-level language keyboard according to claim 1, wherein the editing the keyboard layout and presetting shortcut keys of high-level language sentences corresponding to different keys comprises:
and editing the keyboard layout in the web application program, presetting shortcut keys of high-level language statements corresponding to different keys, and simultaneously acquiring a keyboard layout chart and original data of a key position table.
3. The high-level language keyboard of claim 1, wherein determining a keyboard schematic from a keyboard layout comprises:
importing the original data into a selected website to generate a wiring diagram, wherein the wiring diagram comprises a horizontal group and a vertical group so as to correspond to a general input/output port of a main control chip;
and drawing a matrix keyboard schematic diagram.
4. The high-level language keyboard of claim 1, wherein the drawing a circuit board according to a keyboard schematic comprises:
and importing the original data into a designated website to obtain a drawing exchange file, and importing the drawing exchange file into the circuit board drawing software to be used as a reference file of key positions.
5. The high-level language keyboard of claim 1, wherein the fabricating a spacer comprises:
and manufacturing the positioning plate by adopting circuit boards with the same material and size according to a keyboard layout.
6. The high-level language keyboard of claim 1, wherein the programming code is programmed into the main control chip, wherein the programming code includes shortcut keys for presetting high-level language statements corresponding to different keys, and the programming code includes:
and writing the bootloader program file into the main control chip by an AVRISP tool.
7. The high-level language keyboard of claim 1, wherein the authoring keyboard firmware comprises:
building a QMK compiling environment, importing original data in a selected website, and selecting a corresponding general input/output port and a main control chip;
editing key positions to generate software configuration files, and placing the configuration files into a keyboard folder for compiling keyboard firmware.
8. A high-level language keyboard as recited in claim 1, wherein the program keyboard and indicator light are connected to activate the indicator light to illuminate when the program keyboard key is activated.
9. The high-level language keyboard of claim 1, wherein the program keyboard comprises a for key, a while key, and an if key, for invoking the for sentence, the while sentence, and the if sentence, respectively.
CN202210039766.5A 2022-01-13 2022-01-13 High-grade language keyboard Pending CN114356108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210039766.5A CN114356108A (en) 2022-01-13 2022-01-13 High-grade language keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210039766.5A CN114356108A (en) 2022-01-13 2022-01-13 High-grade language keyboard

Publications (1)

Publication Number Publication Date
CN114356108A true CN114356108A (en) 2022-04-15

Family

ID=81109083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210039766.5A Pending CN114356108A (en) 2022-01-13 2022-01-13 High-grade language keyboard

Country Status (1)

Country Link
CN (1) CN114356108A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080211698A1 (en) * 2004-05-03 2008-09-04 Adina Zach Keyboard with Variable Markings and Layouts
CN103518179A (en) * 2011-04-20 2014-01-15 高通股份有限公司 Virtual keyboards and methods of providing the same
CN103677303A (en) * 2013-12-19 2014-03-26 任文 Virtual keyboard layout design and letter input scheme of smart phone touch screen
CN110347268A (en) * 2019-07-24 2019-10-18 郁祖昌 The programmable Chinese fast recording keyboard of one kind
KR20200086175A (en) * 2019-01-08 2020-07-16 김경양 Method for augmentative and alternative communication, and computer program recorded on record-medium for executing method therefor
CN112667090A (en) * 2019-10-16 2021-04-16 北京航天长峰科技工业集团有限公司 Mechanical keyboard with common programming language

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080211698A1 (en) * 2004-05-03 2008-09-04 Adina Zach Keyboard with Variable Markings and Layouts
CN103518179A (en) * 2011-04-20 2014-01-15 高通股份有限公司 Virtual keyboards and methods of providing the same
CN103677303A (en) * 2013-12-19 2014-03-26 任文 Virtual keyboard layout design and letter input scheme of smart phone touch screen
KR20200086175A (en) * 2019-01-08 2020-07-16 김경양 Method for augmentative and alternative communication, and computer program recorded on record-medium for executing method therefor
CN110347268A (en) * 2019-07-24 2019-10-18 郁祖昌 The programmable Chinese fast recording keyboard of one kind
CN112667090A (en) * 2019-10-16 2021-04-16 北京航天长峰科技工业集团有限公司 Mechanical keyboard with common programming language

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
时建龙;鲍丹;黄少珉;: "基于SEP5010 WinCE5.0的矩阵键盘驱动的设计与实现", 现代电子技术, no. 24 *
杨柳, 黄晓玲: "基于PLC的石油储运监控系统的设计与实现", 工业仪表与自动化装置, no. 03 *

Similar Documents

Publication Publication Date Title
US7039892B2 (en) Systems and methods for ensuring correct connectivity between circuit designs
US7869890B2 (en) Keyboards having multiple groups of keys in the management of a process control plant
KR19990078017A (en) Electronic apparatus comprising a display screen, and method of displaying graphics
CN101996693A (en) Configuration system for reactor protection system
CN108090006A (en) A kind of method of one key switching PCIE Switch operating modes
CN105955184B (en) One kind realizing multi-process universal control method based on PLC
US6615287B1 (en) Means for flexible keyboard auto-ID implementation
CN105094910A (en) Driving function user state debugging system and method
JP4962285B2 (en) CAD apparatus and CAD program
CN109086342B (en) Method, medium and terminal for mass production and operation and maintenance of website templates
CN100369519C (en) Operation maintenance system and method for base-station system
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
CN116540986A (en) Method for constructing text programming language code editor based on Web end
CN114356108A (en) High-grade language keyboard
CN110647564A (en) Hive table establishing method, electronic device and computer readable storage medium
CN112486492A (en) Page generation method and device, storage medium and electronic equipment
CN100435156C (en) Promting system and method
CN107566900B (en) Method for optimizing layout of App keyboard of smart television based on key reuse
CN113836857A (en) Circuit board lead adjusting method and device
US8254143B2 (en) Backplane and communication apparatus
CN108415745A (en) A kind of method of UI controls manipulation smart machine on mobile terminal
CN100386756C (en) Schematic diagram component symbol examining apparatus and obtaining method
CN103135991A (en) Customization implementation method of embedded device web interface
WO2001073594A1 (en) Method and apparatus for searching the functions in electric appliance
CN102375657A (en) Display control device and method for controller to select display image interaction objects

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