From a8d5ea1a6a2883620b52f5f1f6089c3eafdeccc6 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Sun, 26 Feb 2012 01:11:17 +0100 Subject: [PATCH] Switched row and col --- drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.c | 2 +- drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.c b/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.c index 67a48e2..2175916 100644 --- a/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.c +++ b/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.c @@ -361,7 +361,7 @@ void samsungvfdHome(void) @brief Sets the cursor to the specified row and column position */ /**************************************************************************/ -void samsungvfdSetCursor(uint8_t col, uint8_t row) +void samsungvfdSetCursor(uint8_t row, uint8_t col) { int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 }; if ( row > samsungvfd_numlines ) diff --git a/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.h b/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.h index 889de2f..d8780a2 100644 --- a/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.h +++ b/drivers/lcd/character/samsung_20T202DA2JA/samsung_20T202DA2JA.h @@ -107,6 +107,6 @@ void samsungvfdAutoscroll ( void ); void samsungvfdNoAutoscroll ( void ); void samsungvfdClear ( void ); void samsungvfdHome ( void ); -void samsungvfdSetCursor ( uint8_t col, uint8_t row ); +void samsungvfdSetCursor ( uint8_t row, uint8_t col ); #endif -- 2.20.1