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

HT16K33 more than 4 digits #9

Open
WarmCatUK opened this issue Mar 8, 2021 · 1 comment
Open

HT16K33 more than 4 digits #9

WarmCatUK opened this issue Mar 8, 2021 · 1 comment

Comments

@WarmCatUK
Copy link

Hi, this is not so much an issue, but a question.
I created some "backpacks" similar to Adafruit's 14-segment alphanumeric displays, however my displays have 6 digits rather than 4.
I created a new library for Arduino here : https://github.com/WarmCatUK/WarmCat_6x14Backpack
Details of the physical backpack are here if you're interested: http://warmcat.uk/?p=322

I'm trying to amend your code to utilise the extra two digits of my displays, but I can't quite follow your code. Could you perhaps point me to where you create the buffer limiting it to 4 digits?

Thanks in advance, Wayne

@WarmCatUK
Copy link
Author

Ah I've made progress, changed the following lines, replacing 8 with 12:
int numc = this->displays_.size() * 12;
for (auto *display : this->displays_) { display->write_bytes(DISPLAY_COMMAND_SET_DDRAM_ADDR, this->buffer_ + offset, 12); offset += 12; }

THANKS

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