-
Notifications
You must be signed in to change notification settings - Fork 33
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
Hyperdisplay Compatibility #32
Comments
This document should help to explain how MicroView fonts are encoded: |
Thanks @MLXXXp , long time since we last chat. I can't believe the document to create fonts for MicroView is still valid after that many years. Hi @iangchristensen , from a quick look at HyperDisplay library, it's is an on going development. I am unable to see any code that will deal with font more than 8 pixel height yet. From their blog, SparkFun has a big vision for this display library, it will be so much better if you can work together with their team to enhance their library. The HyperDisplay library is using part of MicroView's library as reference hence using the same font format. If you look at this function, it deals with font taller than 8pixel height. MicroView-Arduino-Library/MicroView.cpp Line 775 in cfc8b5c
But before you wasted time porting this over, just a reminder that MicroView library was improved by @MLXXXp to be optimized and serve one single purpose to be fast and efficient for the MicroView OLED. Because HyperDisplay is meant for "any" display, hence the code from MicroView may need to be relook and changed to work with other display sizes. Good luck. |
@MLXXXp and @jpliew, thanks for pointing @iangchristensen at the HyperDisplay Project GitHub Repository, as well as for the great work on the MicroView! @iangchristensen, the 5x7 MicroView font is included so that there is a default that allows text to get to the screen, and also as a reference for one way to add your own font. I'm happy to see that you're interested in HyperDisplay and would gladly help you get the 8x16 font working. Can you open an issue on the HyperDisplay repository (link above)? At a very high level there are two things happening to display the 5x7 font with HyperDisplay:
In step two each character that is drawn has a rectangular area of WxH pixels. Each pixel may have its own color and relative X/Y location within the character area. Setting that information into the Like I said, I'm excited to hear more from your at the HyperDisplay repo. Thanks! |
I've attempted to add your 8x16 font size to the hyperdisplay library, but I would appreciate some help. I began by adding the microview 8x16font.h bitmap from your repository. I copied the getCharInfo() method in hyperdisplay.cpp, and I'm attempting to rework the algorithm for the 8x16font.h, however, I'm running into some issues. When I try writing out the bitmap on graphing paper I end up with gibberish, and when running the code the size is still 5x7 unless I swap indi and indj at line 973 --> if(values[indj] & (0x01 << indi)).
Here is the link to the file I'm using: https://github.com/iangchristensen/SparkFun_HyperDisplay_Library/blob/master/SparkFun_HyperDisplay_Library/src/hyperdisplay.cpp
The text was updated successfully, but these errors were encountered: