3 Commits
1.1.1 ... 1.1.2

Author SHA1 Message Date
marcoschwartz
5d01111db1 Merge pull request #5 from cmaglie/fix-write
Fixed wrong return value for ::write() method
2015-11-29 19:39:40 +01:00
Cristian Maglie
d8436069f2 Upgrading library patch version 2015-11-13 13:07:45 +01:00
Cristian Maglie
143b5a1cb3 Fix incorrect Print.write() return value.
The write method must return the number of byte successfully written
(1 in this case).

This fixes the library with the latest AVR core that stops writing
on error:
25d81c98e4

Without this patch the LCD shows only the first charater of a string.
2015-11-13 12:59:12 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
#define printIIC(args) Wire.write(args)
inline size_t LiquidCrystal_I2C::write(uint8_t value) {
send(value, Rs);
return 0;
return 1;
}
#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::setContrast(uint8_t new_val){}

View File

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