Merge pull request #5 from cmaglie/fix-write

Fixed wrong return value for ::write() method
master 1.1.2
marcoschwartz 9 years ago
commit 5d01111db1
  1. 4
      LiquidCrystal_I2C.cpp
  2. 2
      library.properties

@ -9,7 +9,7 @@
#define printIIC(args) Wire.write(args) #define printIIC(args) Wire.write(args)
inline size_t LiquidCrystal_I2C::write(uint8_t value) { inline size_t LiquidCrystal_I2C::write(uint8_t value) {
send(value, Rs); send(value, Rs);
return 0; return 1;
} }
#else #else
@ -312,4 +312,4 @@ void LiquidCrystal_I2C::draw_horizontal_graph(uint8_t row, uint8_t column, uint8
void LiquidCrystal_I2C::draw_vertical_graph(uint8_t row, uint8_t column, uint8_t len, uint8_t pixel_row_end){} void LiquidCrystal_I2C::draw_vertical_graph(uint8_t row, uint8_t column, uint8_t len, uint8_t pixel_row_end){}
void LiquidCrystal_I2C::setContrast(uint8_t new_val){} void LiquidCrystal_I2C::setContrast(uint8_t new_val){}

@ -1,5 +1,5 @@
name=LiquidCrystal I2C name=LiquidCrystal I2C
version=1.1.1 version=1.1.2
author=Frank de Brabander author=Frank de Brabander
maintainer=Marco Schwartz <marcolivier.schwartz@gmail.com> maintainer=Marco Schwartz <marcolivier.schwartz@gmail.com>
sentence=A library for I2C LCD displays. sentence=A library for I2C LCD displays.

Loading…
Cancel
Save