Feature Requests

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
sameh_philipp
Posts: 1
http://meble-kuchenne.info.pl
Joined: Sat Dec 19, 2020 3:51 pm

Feature Requests

Post by sameh_philipp »

Hello

Can you add a feature like as "Print Letter" to component macro 74hc595 7 segment ?

Thank You.

Sameh Philipp
Sameh Philipp

mnfisher
Valued Contributor
Posts: 1942
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 157 times
Been thanked: 911 times

Re: Feature Requests

Post by mnfisher »

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

Post Reply