Page 1 of 1

How to use *.a file or compile *.a file to firmware

Posted: Wed Sep 22, 2021 4:29 am
by weili_an
micropython only support UTF code,I need to support chinese,so I need to add a font chip. But font chip only provide a *.a file and a *.h file,How should I use the two file?

Re: How to use *.a file or compile *.a file to firmware

Posted: Wed Sep 22, 2021 6:43 am
by stijn
You'll have to add the static library (the .a file) to the linker command in the Makefile. And change whatever C code needed to call the functions/variables in the .h file. But hard to give more information because I have no idea what a 'font chip' means or what's in the .h file :)

Re: How to use *.a file or compile *.a file to firmware

Posted: Thu Sep 23, 2021 1:03 pm
by weili_an
I think I find example,I will try!

Re: How to use *.a file or compile *.a file to firmware

Posted: Sun Sep 26, 2021 5:26 am
by weili_an
font chip is a flash chip that has many chinese character