| 200 | } |
| 201 | |
| 202 | void LiquidCrystal::setCursor(uint8_t col, uint8_t row) |
| 203 | { |
| 204 | const size_t max_lines = sizeof(_row_offsets) / sizeof(*_row_offsets); |
| 205 | if ( row >= max_lines ) { |
| 206 | row = max_lines - 1; // we count rows starting w/0 |
| 207 | } |
| 208 | if ( row >= _numlines ) { |
| 209 | row = _numlines - 1; // we count rows starting w/0 |
| 210 | } |
| 211 | |
| 212 | command(LCD_SETDDRAMADDR | (col + _row_offsets[row])); |
| 213 | } |
| 214 | |
| 215 | // Turn the display on/off (quickly) |
| 216 | void LiquidCrystal::noDisplay() { |
no outgoing calls
no test coverage detected