Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u8g2 编译占用 Flash 过多的问题 #3

Open
wuhanstudio opened this issue May 22, 2019 · 1 comment
Open

u8g2 编译占用 Flash 过多的问题 #3

wuhanstudio opened this issue May 22, 2019 · 1 comment

Comments

@wuhanstudio
Copy link
Owner

wuhanstudio commented May 22, 2019

很多朋友提到:添加 u8g2 之后编译会发现 flash 体积明显变大。

这主要是因为 u8g2 包含了很多没有用到的字库,可以参照这个把不需要的字库移除掉,体积就会小很多

https://github.com/olikraus/u8g2/blob/master/doc/faq.txt

https://github.com/olikraus/u8g2/wiki/u8g2optimization

@wuhanstudio wuhanstudio changed the title u8g2 之后占用 Flash 过多的问题 u8g2 编译占用 Flash 过多的问题 May 22, 2019
@wuhanstudio
Copy link
Owner Author

如果使用 Keil 也可以考虑打开优化选项

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant