Programming: Creating the Function of GotoLocation(x,y) for the LCD

A prototype and function is created to put the cursor on the LCD to any location on the display.



Initial Row First Position Locations: char firstColumnPositionsForMrLCD[4] = {0, 64, 20, 84}; The prototype: void GotoMrLCDsLocation(uint8_t, uint8_t y); The function: void GotoMrLCDsLocation(uint8_t, uint8_t y); { Send_A_Command(0x80 + firstColumnPositionsForMrLCD[y] + x); }
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.