Changing the 7Seg LED ??

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
ksor
Posts: 126
Joined: Mon Oct 23, 2006 3:50 pm
Contact:

Changing the 7Seg LED ??

Post by ksor »

I want to have the "9" with an extra segment added - the lower segment "d" - just like the "6" have the upper segment "a".

How can I do that ?
Best regards
KSor, Denmark

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

Re: Changing the 7Seg LED ??

Post by Benj »

Hello Ksor,

Select the 7-seg on the panel and then choose custom code from the properties menu.

Edit the ShowDigit function and find the following section of code.

//set pattern array for the display
#ifdef _BOOSTC
rom char* cSegmentArray = {%c, %d, %e, %f, %g, %h, %i, %j, %k, %l};
#endif
#ifdef HI_TECH_C
const char cSegmentArray[] = {%c, %d, %e, %f, %g, %h, %i, %j, %k, %l};
#endif

Then remove the %l references and replace with the number 152. This will be the default number 9, you can then change this number until you have the output you require when you display a 9. The change will not simulate but will work correctly on the hardware.

Post Reply