7seg.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <html>
  2. <head>
  3. <title>7-Segment Display</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/7seg.gif" width="32" height="32">
  7. <em>7-Segment Display</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Input/Output</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.1.3</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/7seg.png" width="42" height="64"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Displays the values of its eight one-bit inputs. <q>Segments</q> are either
  18. colored or light gray depending on the inputs. The correspondence is as
  19. follows.
  20. <center><img src="../../../../en/img-libs/io-segs.png" width="82" height="127"></center>
  21. (Manufacturers vary as to how they map inputs to segments; the
  22. correspondence used here is based on Texas Instruments'
  23. TIL321.)</p>
  24. <h2>Pins</h2>
  25. <dl>
  26. <dt>North edge, first from left (input, bit width 1)
  27. <dd>Controls the middle horizontal segment.
  28. <dt>North edge, second from left (input, bit width 1)
  29. <dd>Controls the upper vertical segment on the left side.
  30. <dt>North edge, third from left (input, bit width 1)
  31. <dd>Controls the upper horizontal segment.
  32. <dt>North edge, fourth from left (input, bit width 1)
  33. <dd>Controls the upper vertical segment on the right side.
  34. <dt>South edge, first from left (input, bit width 1)
  35. <dd>Controls the lower vertical segment on the left side.
  36. <dt>South edge, second from left (input, bit width 1)
  37. <dd>Controls the bottom horizontal segment.
  38. <dt>South edge, third from left (input, bit width 1)
  39. <dd>Controls the lower vertical segment on the right side.
  40. <dt>South edge, fourth from left (input, bit width 1)
  41. <dd>Controls the decimal point.
  42. </dl>
  43. <h2>Attributes</h2>
  44. <dl>
  45. <dt>On Color</dt>
  46. <dd>The color with which to draw the display segments and decimal point when
  47. they are on.</dd>
  48. <dt>Off Color</dt>
  49. <dd>The color with which to draw the display segments and decimal point when
  50. they are off.</dd>
  51. <dt>Background</dt>
  52. <dd>The color with which to draw the display's background (transparent by default).</dd>
  53. <dt>Active On High?</dt>
  54. <dd>If <q>yes</q>, then the segments light when the corresponding input is 1.
  55. If <q>no</q>, they light when the corresponding input is 0.</dd>
  56. </dl>
  57. <h2>Poke Tool Behavior</h2>
  58. <p>None.</p>
  59. <h2>Text Tool Behavior</h2>
  60. <p>None.</p>
  61. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  62. </body>
  63. </html>