Electricity Monitoring - LED Displays
You can download LED "images" from: Digit Mania (http://www.digitmania.holowww.com/index.html). There are hundreds of them. I have "tweaked" some of their images to add special characters (: . , etc) and can upload them here if you like some specific set of images. I am partial to the yellow ones that look slightly italicized.
In the ASP code where I want to display a specific value I use something like this:
The "ConvertDigitsF" function looks like this:
Hope this helps, let me know if you need more.
You can download LED "images" from: Digit Mania (http://www.digitmania.holowww.com/index.html). There are hundreds of them. I have "tweaked" some of their images to add special characters (: . , etc) and can upload them here if you like some specific set of images. I am partial to the yellow ones that look slightly italicized.
In the ASP code where I want to display a specific value I use something like this:
HTML Code:
<td align=center> <%=ConvertDigitsF(FormatNumber(CurrentUsage/1000,3))%> </td>
HTML Code:
Function ConvertDigitsF(intTemp)
Dim strTemp, strTemp1, strTemp2, intCount
strTemp = intTemp
If strTemp="" Then strTemp="0"
If len(strTemp) < 3 then strTemp = String(3-len(strTemp),"0") & strTemp
For intCount = 1 to len(strTemp)
strTemp1=mid(strTemp,intCount,1)
If strTemp1 = "." Then strTemp1 = "period"
If strTemp1 = "," Then strTemp1 = "comma"
If strTemp1 = ":" Then strTemp1 = "colon"
strTemp2=strTemp2 & "<img src=/images/" & strTemp1 & "7seg.gif>"
Next 'intCount
ConvertDigitsF = strTemp2
End Function
Comment