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

Make LCD/SPI/USART units compatible to the Nuclei SDK #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gsauthof
Copy link

I'm using the nuclei-sdk instead of the old gd32vf103-sdk framework with PlatformIO, because the former superseded the latter.

Nuclei is quite similar, but there are also some differences. Such as bug fixes but also changes in how the headers include each other.

Thus, I made the includes more specific such that it also compiles under the Nuclei SDK. These changes should even be backwards compatible, since those headers were present in the old SDK, as well.

While at it I also added support for line-feed (\r), fixed a few warnings and replaced the LcdCmdData class with initializers lists to save some bytes in the data segment.

Perhaps this makes the code also easier to maintain, since there is no need anymore to specify the correct size for the command block.

PS: Btw, I also locked at your LcdFonts example sub-directory and it looks that there are some files missing?

I mean I don't find the location where e.g. FreeMonoBold18pt7b is defined.
And I also can't find the fonts.h header:

#include "Longan/fonts.h"

@gsauthof gsauthof changed the title Make LCD/SPI units compatible to the Nuclei SDK Make LCD/SPI/USART units compatible to the Nuclei SDK Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant