Microchip_Examples/SerialCommExamples/SpiSerialDisplay/SpiSerialDisplay.cpp
void SetCursor(uint8_t row, uint8_t column) {
    // Bounds-check the passed-in row and column
    if (row >= NUM_ROWS) {
        row = 0;
    }
    if (column >= NUM_COLUMNS) {
        column = 0;
    }

    uint8_t position = row * NUM_COLUMNS + column;
    SpiPort.SpiSsMode(SerialDriver::LINE_ON);
    SpiPort.SpiTransferData(0xfe);
    SpiPort.SpiTransferData(0x45);
    SpiPort.SpiTransferData(position);
    SpiPort.SpiSsMode(SerialDriver::LINE_OFF);
}
/*------------------------------------------------------------------------------
 * SetCursor
 *
 *    Sends a short SPI transaction to control the position of the device's
 *    internal cursor that controls where characters are printed on the LCD
 *    screen. See the device's datasheet for a full set of commands and syntax.
 *
 * Parameters:
 *    uint8_t row  - The character row to move the cursor to.
 *    uint8_t column  - The character column to move the cursor to.
 *
 * Returns: None
 */
SetCursor
Sends a short SPI transaction to control the position of the device's
internal cursor that controls where characters are printed on the LCD
screen. See the device's datasheet for a full set of commands and syntax.

uint8_t row  - The character row to move the cursor to.
uint8_t column  - The character column to move the cursor to.

None
SetCursor Sends a short SPI transaction to control the position of the device ' s internal cursor that controls where characters are printed on the LCD screen . See the device ' s datasheet for a full set of commands and syntax . uint8_t row - The character row to move the cursor to . uint8_t column - The character column to move the cursor to . None
void SetCursor(uint8_t row, uint8_t column) {
    if (row >= NUM_ROWS) {
        row = 0;
    }
    if (column >= NUM_COLUMNS) {
        column = 0;
    }
    uint8_t position = row * NUM_COLUMNS + column;
    SpiPort.SpiSsMode(SerialDriver::LINE_ON);
    SpiPort.SpiTransferData(0xfe);
    SpiPort.SpiTransferData(0x45);
    SpiPort.SpiTransferData(position);
    SpiPort.SpiSsMode(SerialDriver::LINE_OFF);
}
void SetCursor ( uint8_t row , uint8_t column ) { if ( row >= NUM_ROWS ) { row = 0 ; } if ( column >= NUM_COLUMNS ) { column = 0 ; } uint8_t position = row * NUM_COLUMNS + column ; SpiPort . SpiSsMode ( SerialDriver :: LINE_ON ) ; SpiPort . SpiTransferData ( 0xfe ) ; SpiPort . SpiTransferData ( 0x45 ) ; SpiPort . SpiTransferData ( position ) ; SpiPort . SpiSsMode ( SerialDriver :: LINE_OFF ) ; }
SetCursor
    Sends a short SPI transaction to control the position of the device's
    internal cursor that controls where characters are printed on the LCD
    screen.
SetCursor Sends a short SPI transaction to control the position of the device ' s internal cursor that controls where characters are printed on the LCD screen .
// Bounds-check the passed-in row and column