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

Font scaling for horizontal addressing #9

Open
replaysMike opened this issue Nov 20, 2024 · 1 comment
Open

Font scaling for horizontal addressing #9

replaysMike opened this issue Nov 20, 2024 · 1 comment

Comments

@replaysMike
Copy link

Thanks for this repo - it's been a huge help getting me started. I didn't have too much trouble getting both samples to work on an ATTINY402 using a 128x64 SSD1306.

I'm kind of stuck at the moment trying to come up with a way to scale fonts when using horizontal addressing mode. I was trying to get the ability to write both small and large text using the same font which is why I can't easily switch and adapt to vertical addressing mode (I think). Since there are 8 pages and not enough memory to do an in-memory screen buffer, did you come across a way to do this?

@wagiminator
Copy link
Owner

You can do it character-wise by scaling one character to memory and then transmit it line by line to the OLED (with setting the cursor each time). There is a lot of cursor re-setting of course, but it's still fast enough.

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

2 participants