No magic commands, but maybe this will do ...
BarGraph is a Word var.
If the BAR is going the wrong way, just change it to shift right (>>).Code:BarGraph=$FFFF<<(LEDcount-((BarData-RangeLOW)*LEDcount)/(RangeHIGH-RangeLOW))
No magic commands, but maybe this will do ...
BarGraph is a Word var.
If the BAR is going the wrong way, just change it to shift right (>>).Code:BarGraph=$FFFF<<(LEDcount-((BarData-RangeLOW)*LEDcount)/(RangeHIGH-RangeLOW))
Last edited by Darrel Taylor; - 26th November 2009 at 20:02. Reason: >>
DT
Bookmarks