| 1 |
lars |
1 |
<style type="text/css">
|
|
|
2 |
<!--
|
|
|
3 |
A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
|
|
|
4 |
A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
|
|
|
5 |
A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}
|
|
|
6 |
th {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
|
|
7 |
//-->
|
|
|
8 |
</style><hr><a name="_C_DIGITALLED74"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>DigitalLED74</b></div>
|
|
|
9 |
<i>(Defined in: jpgraph_led.php : 24)</i><table border=1><tr><td> <a href="DigitalLED74.html" style="font-family:arial;font-weight:bold;color:darkblue;">DigitalLED74</a> </td></tr><tr><td valign=top> <a href="DigitalLED74.html#_DIGITALLED74_DIGITALLED74">DigitalLED74()</a> <br>
|
|
|
10 |
<a href="DigitalLED74.html#_DIGITALLED74_SETSUPERSAMPLING">SetSupersampling()</a> <br>
|
|
|
11 |
<a href="DigitalLED74.html#_DIGITALLED74_STROKENUMBER">StrokeNumber()</a> <br>
|
|
|
12 |
</td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div> <p>
|
|
|
13 |
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
14 |
<p> <p> <span style='font-size:110%;'><a name="_DIGITALLED74_DIGITALLED74"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
15 |
function DigitalLED74($aRadius,$aMargin)</font>
|
|
|
16 |
</b></div></a></span>
|
|
|
17 |
|
|
|
18 |
<span style='font-family:arial;font-size:90%;'><i>Constructor for 4x7 module LED digits</i></span><p>
|
|
|
19 |
|
|
|
20 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
21 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
22 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
23 |
$aRadius</font>
|
|
|
24 |
|
|
|
25 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Radius in pixel for each "led"</td></tr>
|
|
|
26 |
|
|
|
27 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
28 |
$aMargin</font>
|
|
|
29 |
|
|
|
30 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Margin around the "led"</td></tr>
|
|
|
31 |
</table>
|
|
|
32 |
|
|
|
33 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Instantiate a LED digit class that is used to genereta text which looks like LED digits <br>
|
|
|
34 |
<br>
|
|
|
35 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Returns</div>An instance of the LED class<br>
|
|
|
36 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="DigitalLED74.html#_DIGITALLED74_SETSUPERSAMPLING">DigitalLED74::SetSupersampling</a> and <a href="DigitalLED74.html#_DIGITALLED74_STROKENUMBER">DigitalLED74::StrokeNumber</a>
|
|
|
37 |
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
|
|
|
38 |
$led = new DigitalLED74();
<br />$led->StrokeNumber('0123456789. ABCDEFGHIJKL',LEDC_GREEN);</font>
|
|
|
39 |
</span><br>
|
|
|
40 |
<p>
|
|
|
41 |
<p> <p> <span style='font-size:110%;'><a name="_DIGITALLED74_SETSUPERSAMPLING"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
42 |
function SetSupersampling($aSuperSampling)</font>
|
|
|
43 |
</b></div></a></span>
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
49 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
50 |
$aSuperSampling</font>
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
</table>
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
<br>
|
|
|
61 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Returns</div>void<br>
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
$led = new DigitalLED74(5);
<br />$led->SetSupersampling(4);
<br />$led->StrokeNumber('ABC123.',LEDC_RED); </font>
|
|
|
65 |
</span><br>
|
|
|
66 |
<p>
|
|
|
67 |
<p> <p> <span style='font-size:110%;'><a name="_DIGITALLED74_STROKENUMBER"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
68 |
function StrokeNumber($aValStr,$aColor)</font>
|
|
|
69 |
</b></div></a></span>
|
|
|
70 |
|
|
|
71 |
<span style='font-family:arial;font-size:90%;'><i>// Margin in between "Led" dots</i></span><p>
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
75 |
|
|
|
76 |
$aValStr</font>
|
|
|
77 |
|
|
|
78 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>No description available</td></tr>
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
$aColor</font>
|
|
|
82 |
|
|
|
83 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
84 |
0</font>
|
|
|
85 |
|
|
|
86 |
</table>
|
|
|
87 |
|
|
|
88 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>No description available.<p> <hr> <p>
|