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: 2
http://meble-kuchenne.info.pl
Joined: Sat Dec 19, 2020 3:51 pm
Has thanked: 2 times

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: 1943
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 157 times
Been thanked: 913 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

sameh_philipp
Posts: 2
Joined: Sat Dec 19, 2020 3:51 pm
Has thanked: 2 times

Re: Feature Requests

Post by sameh_philipp »

hello mnfisher

thank you very much for your help, I appreciate so much,.

Regards..
Sameh Philipp

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

Re: Feature Requests

Post by mnfisher »

Have a play - see how you get on...

See https://www.flowcode.co.uk/forums/viewt ... 898#p21898 - where I do this for the MAX7219 7 segment display.

You could maybe 'borrow; the character set?

Martin

Post Reply