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

more icon #33

Open
lebdayoub opened this issue Nov 24, 2021 · 1 comment
Open

more icon #33

lebdayoub opened this issue Nov 24, 2021 · 1 comment

Comments

@lebdayoub
Copy link

Hello,

i want to inform that i like your progremm is so easy to work with but i notice a little issue if you want to realise with me, is that i want to add more icon like coofe icon and more, can you give me a little response from your part that show me how to get this issue .

Kinf regards
LEbda Ayoub

@jnweiger
Copy link
Owner

Thanks!
I don't have any real instructions how to add more icons, but when you look very closely at the code near
https://github.com/jnweiger/led-name-badge-ls32/blob/master/led-badge-11x44.py#L221
you may be able to recognize the graphics directly in the code.

Directly below that line is a 'ball' -- I'll reproduce the 0's and 1's representation stretched by factor of 3 and then once more with emphasizing the 1's:
image

The second icon done in this style is 'happy' - a basic smiley. When stretched and emphasized, it looks like this:
image

With 'happy' there is an additional column of gray comments next to each binary 0 and 1 pattern line. These comments
hold exactly the same value, as the binary pattern, but written in hexadecimal notation, technically binary or hex values are interchangeable, they represent the same number from the computer's perspective. From a human perspective, the binary notation gives a visual hint how the icon looks.

All the other icons further down are written directly in this hex notation for compactness. But in hex, the bit patterns are not so easily visible.

Hope that helps...
At least if someone wondered, why some icons are written in different notation, that is was meant for educational purposes 😇

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