View Single Post
Old 06-13-2015, 08:15 AM   #66 (permalink)
Theitguy
EcoModding Lurker
 
Join Date: Jun 2015
Location: Australia
Posts: 18
Thanks: 3
Thanked 0 Times in 0 Posts
please excuse my ignorance.... but im really having trouble with this!

so i just substitute, for example vssSpeed, variable into the value, 0x70 for the address to get it to display the vss speed?

something like this:

Code:
void ledDisplayNumerical(byte(0x70), int (LEDvssSpeed), byte (forceDig_dpSelect))
{
**float LEDvssSpeed = 0;
**float distance = ( float(vssPulseCount) / float(vssPulsesPerUnitDistance) );
**if(vssCyclePeriod != 0) {LEDvssSpeed = ( vssCyclePeriodToSpeedNumerator / float(vssCyclePeriod) );}
**if(micros() > vssLastOnTime + vssTimeOut) {LEDvssSpeed = 0;}
**
  Reply With Quote