MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / setCursor

Method setCursor

examples/AllProtocolsOnLCD/LiquidCrystal.cpp:202–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void 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)
216void LiquidCrystal::noDisplay() {

Callers 5

LCDResetCursorFunction · 0.45
LCDClearLineFunction · 0.45
LCDShowSpecialCharactersFunction · 0.45
LCDShowCustomCharactersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected