jnweiger / led-name-badge-ls32

Upload tool for an led name tag with USB-HID interface
GNU General Public License v2.0
223 stars 81 forks source link

more icon #33

Open lebdayoub opened 2 years ago

lebdayoub commented 2 years ago

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 commented 1 year ago

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 :innocent: