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 ?
Changing the 7Seg LED ??
Moderator: Benj
- 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 ??
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel