Custom Characters For 7Segment Displays

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

prasha920
Posts: 30
Joined: Tue Apr 16, 2013 3:10 pm
Has thanked: 48 times
Been thanked: 8 times
Contact:

Custom Characters For 7Segment Displays

Postby prasha920 » Sat Oct 26, 2013 7:01 pm

Hi All,
attached the edited component files of 7segment (single and 4 7seg.) components.
just replace the original .c files with these ones in components folder of your FC installed directory.
also make sure to back up the original files, not necessary but you can easily revert back if you think your code size has increased and you dont want custom characters. :D
LUT file is also uploaded for reference while defining the variables(small description is given in the file.
hope this helps ... :D
updated with all on and off display feature. :D
if you find this useful you can appreciate by clicking on thumbs up icon :D :D

Regards,
Prashant
Attachments
LUT for custom sement display.xls
Added "all_on" and "off" feature
(33 KiB) Downloaded 214 times
PIC_7seg4.c
(6.32 KiB) Downloaded 254 times
PIC_7seg.c
(8.54 KiB) Downloaded 206 times
Last edited by prasha920 on Wed Nov 27, 2013 1:28 pm, edited 1 time in total.
These users thanked the author prasha920 for the post (total 2):
medelec35 (Sat Oct 26, 2013 11:51 pm) • Benj (Mon Oct 28, 2013 10:39 am)
Rating: 11.11%
 

beambase
Posts: 94
Joined: Wed Jul 29, 2009 5:15 pm
Has thanked: 6 times
Been thanked: 8 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby beambase » Mon Oct 28, 2013 9:17 am

Hello
for what version of Flowcode was this created? I've tried it in version 5 but it doesn't compile, generating several errors. I will look at the code and see id I can do a version 5 or version 6 compatible component.

prasha920
Posts: 30
Joined: Tue Apr 16, 2013 3:10 pm
Has thanked: 48 times
Been thanked: 8 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby prasha920 » Mon Oct 28, 2013 11:47 am

Hello,
First off thanks for updating...
i am really sorry that i didn't mention the flowcode version.
I have edited the FCV 4 component files.

I didn't had much information about the compatibility of FC component files between different versions of the FC.
Anyways, it is much easier to edit the component files of any version,
i have now uploaded the another file that may help for other versions of FC..
check it out and please let me know if it works. :D
Hope it helps..


Prashant
Attachments
for other versions than FC4.txt
FC5 and FC6 users please download this file and LUT file from 1st post.
(1.54 KiB) Downloaded 242 times

Lucky123
Posts: 1
Joined: Thu Dec 19, 2013 8:16 am
Contact:

Re: Custom Characters For 7Segment Displays

Postby Lucky123 » Thu Dec 19, 2013 8:29 am

not necessary but you can easily revert back if you think your code size
**** *SABer ****

Derrihj
Posts: 49
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 7 times
Been thanked: 2 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby Derrihj » Wed May 15, 2019 12:19 am

Tried to change FC8 component files for 7seg but notepad cannot read the files when i tried to force it its shows funny characters in notepad what can i do coz I've always whated to use custom characters on 7seg pliz help how can i change FC8 componet files do 7seg to use with LUT for custom characters.

Derrihj
Posts: 49
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 7 times
Been thanked: 2 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby Derrihj » Wed May 15, 2019 9:21 am

The example in the LUT does not clearly show how to display characters for example how do i display 'OFF' on a 7seg quad display?

User avatar
Benj
Matrix Staff
Posts: 14073
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4297 times
Been thanked: 4050 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby Benj » Fri May 17, 2019 7:02 pm

Hello,

I added functionality into v8 for you as requested here.
viewtopic.php?f=76&t=21209&p=95265#p95265

For OFF you would use these values.

O = 0b00111111
F = 0b01110001

Derrihj
Posts: 49
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 7 times
Been thanked: 2 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby Derrihj » Sat May 18, 2019 10:25 am

Yes but how to use them please help us with an example. To make things simple.

User avatar
Benj
Matrix Staff
Posts: 14073
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4297 times
Been thanked: 4050 times
Contact:

Re: Custom Characters For 7Segment Displays

Postby Benj » Tue May 21, 2019 10:13 am

Here's an example for you.
7segCharDemo.fcfx
(15.63 KiB) Downloaded 33 times