Hello
Can you add a feature like as "Print Letter" to component macro 74hc595 7 segment ?
Thank You.
Sameh Philipp
Feature Requests
-
sameh_philipp
- Posts: 1
- http://meble-kuchenne.info.pl
- Joined: Sat Dec 19, 2020 3:51 pm
-
mnfisher
- Valued Contributor
- Posts: 1942
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 157 times
- Been thanked: 911 times
Re: Feature Requests
It is relatively easy to do using the 'segments' function.
Have an array for the characters you need - not all characters are possible but a fair few are so use ASCII mapping (' ' (space) is 32, 'A' 65 etc) - and I would offset the index (use .c - 32 where .c is the character) as 0..31 are not 'printable'
Then you have .segments = char_set[.c -32] ChatGPT (or alternative) will generate the lookup table for you
Martin
Have an array for the characters you need - not all characters are possible but a fair few are so use ASCII mapping (' ' (space) is 32, 'A' 65 etc) - and I would offset the index (use .c - 32 where .c is the character) as 0..31 are not 'printable'
Then you have .segments = char_set[.c -32] ChatGPT (or alternative) will generate the lookup table for you
Martin