LcdDisplay.DisplayDriver.Util (LcdDisplay v0.0.13) View Source
Link to this section Summary
Functions
Determines a cursor position based on the number of rows, the number of columns, and the zero-indexed cursor row and column.
Link to this section Functions
Determines a cursor position based on the number of rows, the number of columns, and the zero-indexed cursor row and column.
Examples
iex> LcdDisplay.DisplayDriver.Util.determine_cursor_position({2, 16}, {0,0})
0
iex> LcdDisplay.DisplayDriver.Util.determine_cursor_position({2, 16}, {0,15})
15
iex> LcdDisplay.DisplayDriver.Util.determine_cursor_position({2, 16}, {1,0})
64
iex> LcdDisplay.DisplayDriver.Util.determine_cursor_position({2, 16}, {1,15})
79