mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
i2clcd: remove unused function argument from the writeChar function
The writeChar function in the ssd13xx classes had an unused argument. Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
ae0d99369b
commit
53b58225a4
@ -71,7 +71,7 @@ SSD1308::write(std::string msg)
|
||||
|
||||
setAddressingMode(PAGE);
|
||||
for (std::string::size_type i = 0; i < msg.size(); ++i) {
|
||||
writeChar(m_i2c_lcd_control, msg[i]);
|
||||
writeChar(msg[i]);
|
||||
}
|
||||
|
||||
return error;
|
||||
@ -107,7 +107,7 @@ SSD1308::clear()
|
||||
|
||||
// clear all columns
|
||||
for (columnIdx = 0; columnIdx < 16; columnIdx++) {
|
||||
writeChar(m_i2c_lcd_control, ' ');
|
||||
writeChar(' ');
|
||||
}
|
||||
}
|
||||
mraa_i2c_write_byte_data(m_i2c_lcd_control, DISPLAY_CMD_ON, LCD_CMD); // display on
|
||||
@ -128,7 +128,7 @@ SSD1308::home()
|
||||
* **************
|
||||
*/
|
||||
mraa_result_t
|
||||
SSD1308::writeChar(mraa_i2c_context ctx, uint8_t value)
|
||||
SSD1308::writeChar(uint8_t value)
|
||||
{
|
||||
if (value < 0x20 || value > 0x7F) {
|
||||
value = 0x20; // space
|
||||
|
@ -105,7 +105,7 @@ class SSD1308 : public I2CLcd
|
||||
mraa_result_t home();
|
||||
|
||||
private:
|
||||
mraa_result_t writeChar(mraa_i2c_context ctx, uint8_t value);
|
||||
mraa_result_t writeChar(uint8_t value);
|
||||
mraa_result_t setNormalDisplay();
|
||||
mraa_result_t setAddressingMode(displayAddressingMode mode);
|
||||
};
|
||||
|
@ -173,7 +173,7 @@ SSD1327::write(std::string msg)
|
||||
|
||||
setVerticalMode();
|
||||
for (std::string::size_type i = 0; i < msg.size(); ++i) {
|
||||
writeChar(m_i2c_lcd_control, msg[i]);
|
||||
writeChar(msg[i]);
|
||||
}
|
||||
|
||||
return error;
|
||||
@ -212,7 +212,7 @@ SSD1327::clear()
|
||||
for (rowIdx = 0; rowIdx < 12; rowIdx++) {
|
||||
// clear all columns
|
||||
for (columnIdx = 0; columnIdx < 12; columnIdx++) {
|
||||
writeChar(m_i2c_lcd_control, ' ');
|
||||
writeChar(' ');
|
||||
}
|
||||
}
|
||||
|
||||
@ -238,7 +238,7 @@ SSD1327::setGrayLevel(uint8_t level)
|
||||
* **************
|
||||
*/
|
||||
mraa_result_t
|
||||
SSD1327::writeChar(mraa_i2c_context ctx, uint8_t value)
|
||||
SSD1327::writeChar(uint8_t value)
|
||||
{
|
||||
if (value < 0x20 || value > 0x7F) {
|
||||
value = 0x20; // space
|
||||
|
@ -112,7 +112,7 @@ class SSD1327 : public I2CLcd
|
||||
mraa_result_t home();
|
||||
|
||||
private:
|
||||
mraa_result_t writeChar(mraa_i2c_context ctx, uint8_t value);
|
||||
mraa_result_t writeChar(uint8_t value);
|
||||
mraa_result_t setNormalDisplay();
|
||||
mraa_result_t setHorizontalMode();
|
||||
mraa_result_t setVerticalMode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user