By the way, talking about the great piece of code. I am trying to make it work on a logarithmic scale, to measure audio levels from -40 to +6dbm (-40db=20mV, 0db=0,775V rms at 600 ohm and +6db=2V). As it can be seen it is a very large dynamic region.
For a few steps it's OK to do it with a lookdown, but if the display is 20 characters wide and with 3 bars each, total 60 steps, a table is slow. So a computational method is to be found.
Testing the suggestions of Tracy Allens at www.emesys.com. I do not fully understand what he is doing there though.
Any other ideas welcome.
Ioannis
Bookmarks