-
Notifications
You must be signed in to change notification settings - Fork 2k
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
mcufont: Initial addition of MCUFont package #19726
Conversation
tests/pkg/mcufont/main.c
Outdated
input, strlen(input), | ||
&char_callback, NULL); | ||
|
||
print_pixbuf(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if the message was also displayed on a screen for boards that provide one. The qrcode package test application does that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/mcufont/patches/0002-decoder-Make-unused-parameters-explicit.patch
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on native and stm32f429i-disc1 and works like a charm. I have a couple of comments.
tests/pkg/mcufont/main.c
Outdated
puts("mcufont package test application"); | ||
mf_render_aligned( | ||
&MCUFONT_DISP_TEST_FONT.font, | ||
0, 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to compute coordinates to diplay the test in the center of the screen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, added a bit that centers the output with respect to the screen size and the string length.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some remaining nits. Will test in hardware now
Still works like a charm (on adafruit- clue). Please squash! |
cb1e35e
to
2df0a80
Compare
Squashed and all green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
bors merge
19726: mcufont: Initial addition of MCUFont package r=aabadie a=bergzand ### Contribution description This adds the MCUFont library as a package to RIOT. Only the decoder part has been packaged. I did not touch the font generation, so the test includes a manually compressed font created via the tooling included in the package. The included patch files have been submitted as PR upstream in mcufont/mcufont#30 ### Testing procedure Run the test on Native or on any board, The output should be along the lines of: ``` 2023-06-11 21:56:40,685 # Help: Press s to start test, r to print it is ready s 2023-06-11 21:56:42,651 # START 2023-06-11 21:56:42,652 # main(): This is RIOT! (Version: 2023.07-devel-512-g49ee9-pr/mcufont) 2023-06-11 21:56:42,652 # Generated RIOT application: 'mcufont' 2023-06-11 21:56:42,653 # | 2023-06-11 21:56:42,654 # | 2023-06-11 21:56:42,694 # █ █ | 2023-06-11 21:56:42,695 # █ █ █ █ █████ █ ███ ███████ █ | 2023-06-11 21:56:42,697 # █ █ █ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,737 # █ █ ████ █ █ ████ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,739 # █ █ ██ ██ █ █ ██ ██ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,740 # ███████ █ █ █ █ █ █ █████ █ █ █ █ █ | 2023-06-11 21:56:42,781 # █ █ ██████ █ █ █ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,782 # █ █ █ █ █ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,783 # █ █ ██ █ █ █ ██ ██ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,807 # █ █ ████ █ █ ████ █ █ █ █ ███ █ █ | 2023-06-11 21:56:42,807 # { "threads": [{ "name": "idle", "stack_size": 256, "stack_used": 220 }]} 2023-06-11 21:56:42,808 # { "threads": [{ "name": "main", "stack_size": 1280, "stack_used": 436 }]} ``` ### Issues/PRs references None Co-authored-by: Koen Zandberg <[email protected]>
Build failed: |
bors merge |
19726: mcufont: Initial addition of MCUFont package r=aabadie a=bergzand ### Contribution description This adds the MCUFont library as a package to RIOT. Only the decoder part has been packaged. I did not touch the font generation, so the test includes a manually compressed font created via the tooling included in the package. The included patch files have been submitted as PR upstream in mcufont/mcufont#30 ### Testing procedure Run the test on Native or on any board, The output should be along the lines of: ``` 2023-06-11 21:56:40,685 # Help: Press s to start test, r to print it is ready s 2023-06-11 21:56:42,651 # START 2023-06-11 21:56:42,652 # main(): This is RIOT! (Version: 2023.07-devel-512-g49ee9-pr/mcufont) 2023-06-11 21:56:42,652 # Generated RIOT application: 'mcufont' 2023-06-11 21:56:42,653 # | 2023-06-11 21:56:42,654 # | 2023-06-11 21:56:42,694 # █ █ | 2023-06-11 21:56:42,695 # █ █ █ █ █████ █ ███ ███████ █ | 2023-06-11 21:56:42,697 # █ █ █ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,737 # █ █ ████ █ █ ████ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,739 # █ █ ██ ██ █ █ ██ ██ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,740 # ███████ █ █ █ █ █ █ █████ █ █ █ █ █ | 2023-06-11 21:56:42,781 # █ █ ██████ █ █ █ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,782 # █ █ █ █ █ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,783 # █ █ ██ █ █ █ ██ ██ █ █ █ █ █ █ █ █ | 2023-06-11 21:56:42,807 # █ █ ████ █ █ ████ █ █ █ █ ███ █ █ | 2023-06-11 21:56:42,807 # { "threads": [{ "name": "idle", "stack_size": 256, "stack_used": 220 }]} 2023-06-11 21:56:42,808 # { "threads": [{ "name": "main", "stack_size": 1280, "stack_used": 436 }]} ``` ### Issues/PRs references None Co-authored-by: Koen Zandberg <[email protected]>
Build failed: |
bors merge |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Thanks! |
Contribution description
This adds the MCUFont library as a package to RIOT. Only the decoder part has been packaged. I did not touch the font generation, so the test includes a manually compressed font created via the tooling included in the package.
The included patch files have been submitted as PR upstream in mcufont/mcufont#30
Testing procedure
Run the test on Native or on any board, The output should be along the lines of:
Issues/PRs references
None