Skip to content

Conversation

@austermady
Copy link

Updated clear() function to accept an optional row parameter.

lcd.clear(); → Clears the entire display.

lcd.clear(0); → Clears only row 0 (or any specified row).

Modified both .cpp and .h files to support this change.

Used uint8_t instead of int for memory efficiency.

Updated clear() function to accept an optional row parameter.

lcd.clear(); → Clears the entire display.

lcd.clear(0); → Clears only row 0 (or any specified row).

Modified both .cpp and .h files to support this change.

Used uint8_t instead of int for memory efficiency.
…w-specific clearing with variadic arguments

Modified clear() to support clearing specific rows.

Used std::initializer_list<uint8_t> to allow multiple row inputs.

Default parameter {} ensures lcd.clear(); still clears the entire display.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant