The invention provides a dynamic
font library optimization method based on a single-
chip microcomputer, and relates to the technical field of single-
chip microcomputers, and the method comprises the steps of enabling the single-
chip microcomputer to be connected with an upper computer through a
serial port, enabling a user to input a to-be-displayed target character through a man-
machine interaction interface of an upper computer development
system, and uploading and storing the to-be-displayed target character into the upper computer; enabling the upper computer to call a built-in dot matrixlibrary to
encode the target character to form a first code, and storing the first code; correcting the
original data model in the upper computer by adopting a classification
algorithm and taking thefirst code as training data to obtain a new
data model, and obtaining a code instruction and an information code through the new
data model; and enabling the single-chip
microcomputer to download andcall the code instruction and the information code, and control the LED
dot matrix according to the information code. The problems that in the prior art, a single-chip microcomputer excessively depends on a specific word stock chip in LED
dot matrix control, so that cost is high, use is not flexible, and
information processing efficiency is low are solved.