[−][src]Module rmicrobit::display::pin_constants
Constants identifying GPIO pins used in the LED matrix.
These constants and convenience functions may be used when working
directly with a DisplayPort
.
Constants
COL_PINS_MASK | u32 bitmask representing the GPIO port numbers of the column pins |
FIRST_COL_PIN | Number in the GPIO port of the first column pin |
FIRST_ROW_PIN | Number in the GPIO port of the first row pin |
LAST_COL_PIN | Number in the GPIO port of the last column pin |
LAST_ROW_PIN | Number in the GPIO port of the last row pin |
MATRIX_COLS | The number of column pins (9). |
MATRIX_ROWS | The number of row pins (3). |
ROW_PINS_MASK | u32 bitmask representing the GPIO port numbers of the row pins |
Functions
col_pin_number | Returns the number in the GPIO port of the specified matrix column pin. |
row_pin_number | Returns the number in the GPIO port of the specified matrix row pin. |