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

Post Reply
prasha920
Posts: 30
Joined: Tue Apr 16, 2013 3:10 pm
Contact:

Custom Characters For 7Segment Displays

Post by prasha920 »

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 265 times
PIC_7seg4.c
(6.1 KiB) Downloaded 309 times
PIC_7seg.c
(8.23 KiB) Downloaded 257 times
Last edited by prasha920 on Wed Nov 27, 2013 1:28 pm, edited 1 time in total.

beambase
Posts: 94
Joined: Wed Jul 29, 2009 5:15 pm
Contact:

Re: Custom Characters For 7Segment Displays

Post by beambase »

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

Re: Custom Characters For 7Segment Displays

Post by prasha920 »

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.49 KiB) Downloaded 294 times

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

Re: Custom Characters For 7Segment Displays

Post by Lucky123 »

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

Derrihj
Posts: 218
Joined: Mon Jul 09, 2018 12:43 pm
Contact:

Re: Custom Characters For 7Segment Displays

Post by Derrihj »

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: 218
Joined: Mon Jul 09, 2018 12:43 pm
Contact:

Re: Custom Characters For 7Segment Displays

Post by Derrihj »

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: 14844
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Custom Characters For 7Segment Displays

Post by Benj »

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: 218
Joined: Mon Jul 09, 2018 12:43 pm
Contact:

Re: Custom Characters For 7Segment Displays

Post by Derrihj »

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

User avatar
Benj
Matrix Staff
Posts: 14844
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Custom Characters For 7Segment Displays

Post by Benj »

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

Post Reply