Page 1 of 1
Changing the 7Seg LED ??
Posted: Thu May 20, 2010 5:00 pm
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 ?
Re: Changing the 7Seg LED ??
Posted: Fri May 21, 2010 9:13 am
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.