dotmat.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <html>
  2. <head>
  3. <title>LED Matrix</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/dotmat.gif" width="32" height="32">
  7. <em>LED Matrix</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/dotmat.png" width="52" height="73"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Displays a small grid of pixels, whose values are determined by the current
  18. inputs. The grid can have up to 32 rows and 32 columns.</p>
  19. <h2>Pins</h2>
  20. <p>The interface to the component varies depending on the value of the
  21. Input Format attribute. It has three possible values.</p>
  22. <dl>
  23. <dt>Columns</dt>
  24. <dd>The inputs are lined along the component's south edge, with one
  25. multibit input for each column of the matrix. Each input has as many bits
  26. as there are rows in the matrix, with the low-order bit corresponding to the
  27. southmost pixel in the column. A 1 indicates to light the corresponding pixel,
  28. while a 0 indicates to keep the pixel dim. If any of the bits for a column are
  29. either floating or error values, then all pixels in the column are lit.</dd>
  30. <dt>Rows</dt>
  31. <dd>The inputs are lined along the component's west edge, with one multibit
  32. input for each row of the matrix. Each input has as many bits as there are
  33. columns in the matrix, with the low-order bit corresponding to the rightmost
  34. pixel in the row. As with the Columns format, a 1 indicates to light the
  35. corresponding pixel, and a 0 indicates to keep the pixel dim. If any bits for
  36. a row are floating or error values, then all pixels in the row are lit.</dd>
  37. <dt>Select Rows/Columns</dt>
  38. <dd>There are two inputs on the component's west edge. The upper multibit
  39. input has as many bits as there are columns in the matrix, with the low-order
  40. bit corresponding to the rightmost column. The lower multibit input has as
  41. many bits as there are rows in the matrix, with the low-order bit corresponding
  42. to the bottom row. If any bits in either input are floating or error
  43. values, all pixels in the matrix are lit. Normally, though, a pixel at a
  44. particular row-column location is lit if the corresponding column bit in the
  45. upper input is 1 and the corresponding row bit in the lower input is 1.
  46. For example, for a 5x7 matrix, if the first input is 01010 and the second is
  47. 0111010, then the second and fourth columns are lit for the second, third,
  48. fourth, and sixth rows; the result appears to be a pair of exclamation points.
  49. (This input format may seem unintuitive, but LED matrixes are sold commercially
  50. with exactly this interface. Lite-On sells such components, for example.)</dd>
  51. </dl>
  52. <h2>Attributes</h2>
  53. <dl>
  54. <dt>Input Format (read-only after component is created)</dt>
  55. <dd>Selects how the pins correspond to pixels, as outlined above.</dd>
  56. <dt>Matrix Columns</dt>
  57. <dd>Selects how many columns are in the matrix, which may range from 1 up to
  58. 32.</dd>
  59. <dt>Matrix Rows</dt>
  60. <dd>Selects how many rows are in the matrix, which may range from 1 up to
  61. 32.</dd>
  62. <dt>On Color</dt>
  63. <dd>Selects the color of a pixel when it is <q>lit.</q></dd>
  64. <dt>Off Color</dt>
  65. <dd>Selects the color of a pixel when it is <q>dim.</q></dd>
  66. <dt>Light Persistence</dt>
  67. <dd>When this is other than 0, a pixel that is <q>lit</q> remains lit
  68. for the given number of clock ticks after the component's inputs indicate
  69. that the pixel should become <q>dim.</q></dd>
  70. <dt>Dot Shape</dt>
  71. <dd>The square option means that each pixel is drawn as a 10x10 square, filling
  72. the component with no gaps between pixels. The circle option means that each
  73. pixel is drawn as a diameter-8 circle, with gaps between each circle. The circle
  74. option is more difficult to interpret, but it more closely approximates the
  75. off-the-shelf LED matrix components.</dd>
  76. </dl>
  77. <h2>Poke Tool Behavior</h2>
  78. <p>None.</p>
  79. <h2>Text Tool Behavior</h2>
  80. <p>None.</p>
  81. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  82. </body>
  83. </html>