10-27-2008 07:45 PM
Solved! Go to Solution.
10-28-2008 03:30 AM - edited 10-28-2008 03:31 AM
Here is one very easy solution - if you can live with the underscore for the decimal point - using Harvey Twiman's 7 segment font.
10-28-2008 03:54 AM - edited 10-28-2008 03:56 AM
10-28-2008 04:16 AM
10-28-2008 08:20 AM
Thanks to everybody who contributed but i am aware of the font change but i actually need it to light up boolean buttons and create the numbers. Here is what i mean.
I started to do it using a look up table converting the binary to decimal values but to go from 000.0 to 999.0 means I would have to convert to many numbers so i am looking for a more efficient way.
10-28-2008 08:35 AM
Can you emulate a multi-digit 7-segment driver? Break the number into 4 digits. (Be careful with the fractional part because of the binary representation of numbers). Use a 10-element look-up for a single digit 7-segment display. Loop 4 times.
Lynn
10-28-2008 08:50 AM
10-28-2008 08:52 AM
10-28-2008 09:10 AM
Yes. Then you only need a small amount of code (for one digit) and repeat it as many times as you have digits. This approach is also scalable. If you would need to increase to 5 or 6 digits later, the only changes would be the display and the number of times you called the digit code.
Lynn
10-28-2008 09:24 AM