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
Wow Darell, that's an ace. I use this for scaling readings but never thought of it this way. Nice tip.
Superb
Thanks Jerson,
bearpawz had most of it already, I just filled in the blanks.
Then compiled, tested and heard ... Ohhh Yeeaaah, before I realized it was me talking.![]()
DT
Bookmarks