Skip to content

7x4 Characters Can be Added in for S2/S3 #108

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

Closed
DJDevon3 opened this issue Oct 22, 2022 · 2 comments
Closed

7x4 Characters Can be Added in for S2/S3 #108

DJDevon3 opened this issue Oct 22, 2022 · 2 comments

Comments

@DJDevon3
Copy link
Contributor

By default the 7x4 backpacks will only do 0-9, a-f, L, O. I realize this is probably by design for lower power boards.

IMG_0536

I added characters so more of the alphabet will display on 7x4 segments (clock style) ... with a few missing logical characters like W, X, etc.. I've inserted dashes since ordinal wants at least something there.

Please don't penalize S2/S3 owners with removed characters just because lower end boards don't have enough RAM to use every character. Setup some kind of board specific detection switch?

The example sketch using base 16 or whatever is very hard to work with. Most people can do hex much easier. Recommend swapping out the bit strings for hex in customchar example at the very least. It's just too confusing to work with.

NUMBERS = (
    0x3F,  # 0
    0x06,  # 1
    0x5B,  # 2
    0x4F,  # 3
    0x66,  # 4
    0x6D,  # 5
    0x7D,  # 6
    0x07,  # 7
    0x7F,  # 8
    0x6F,  # 9
    0x77,  # a
    0x7C,  # b
    0x39,  # C
    0x5E,  # d
    0x79,  # E
    0x71,  # F
    0x3D,  # G
    0x76,  # H
    0x30,  # I
    0x1E,  # J
    0x40,  # -
    0x38,  # L
    0x40,  # -
    0x54,  # n
    0x5C,  # o
    0x73,  # P
    0x67,  # q
    0x50,  # R
    0x6D,  # S
    0x78,  # t
    0x3E,  # U
    0x1C,  # v
    0x40,  # -
    0x40,  # -
    0x6E,  # y
    0x40,  # -
)
if char in "abcdefghijklmnopqrstuvwxy":
            character = ord(char) - 97 + 10

Only changes required.

IMG_0537

and now I have a usable alphabet running on my 7-segment clock displays on the esp32-s2.

@makermelissa
Copy link
Collaborator

Hi, looks awesome. Want to submit a PR?

@makermelissa
Copy link
Collaborator

Fixed by #109.

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