hexdig.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <html>
  2. <head>
  3. <title>Hex Digit Display</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/hexdig.gif" width="32" height="32">
  7. <em>Hex Digit 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.2.0</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/hexdig.png" width="42" height="63"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Using a seven-segment display, shows the hexadecimal digit corresponding to
  18. the four-bit input. If any of the inputs are not 0/1 (either floating or error),
  19. then the display shows a dash ('-'). A separate one-bit input controls the
  20. display of the decimal point.</p>
  21. <h2>Pins</h2>
  22. <dl>
  23. <dt>South edge, first from left (input, bit width 4)</dt>
  24. <dd>This input is interpreted as an unsigned four-bit number, and the
  25. corresponding hexadecimal digit is displayed. If any of the bits are floating
  26. or error, then a dash ('-') is displayed.</dd>
  27. <dt>South edge, second from left (input, bit width 1)</dt>
  28. <dd>Controls the decimal point. If this is left unconnected, the decimal point
  29. remains off.</dd>
  30. </dl>
  31. <h2>Attributes</h2>
  32. <dl>
  33. <dt>On Color</dt>
  34. <dd>The color with which to draw the display segments and decimal point when
  35. they are on.</dd>
  36. <dt>Off Color</dt>
  37. <dd>The color with which to draw the display segments and decimal point when
  38. they are off.</dd>
  39. <dt>Background</dt>
  40. <dd>The color with which to draw the display's background (transparent by default).</dd>
  41. </dl>
  42. <h2>Poke Tool Behavior</h2>
  43. <p>None.</p>
  44. <h2>Text Tool Behavior</h2>
  45. <p>None.</p>
  46. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  47. </body>
  48. </html>