View Single Post
Old 06-13-2015, 06:37 AM   #65 (permalink)
bobski
EcoModding Apprentice
 
Join Date: Jan 2010
Location: Newark, DE
Posts: 143

'91 CRX - '91 Honda CRX DX
90 day: 34.91 mpg (US)
Thanks: 0
Thanked 14 Times in 14 Posts
Ah.
Code:
ledDisplayNumerical(byte addr, int value, byte forceDig_dpSelect);
addr is the i2c address of the saa1064, value is the number you want to display, forceDig_dpSelect is a bit field that disables automatic leading-zero blanking (the first 4 bits) and controls the decimal point segments of the display (the last 4 bits). It relies on the values in findSegs() to decide which display segments (driver pins) need to be lit to create the requested character (decimal to 7-segment decoding) and saa1064Update() to actually push the formatted data to the chip.
  Reply With Quote