Skip to content

Commit 17848db

Browse files
committed
Fix compile error of LiquidCrystal library in Arduino IDE 1.6.x
1 parent 0b2d2a2 commit 17848db

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

libraries/LiquidCrystal/LCD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void LCD::createChar(uint8_t location, uint8_t charmap[])
304304
}
305305

306306
#ifdef __AVR__
307-
void LCD::createChar(uint8_t location, const prog_uchar charmap[])
307+
void LCD::createChar(uint8_t location, const unsigned char charmap[])
308308
{
309309
location &= 0x7; // we only have 8 memory locations 0-7
310310

libraries/LiquidCrystal/LCD.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class LCD : public Print
418418
(0 to 7)
419419
@param charmap[in] the bitmap array representing each row of the character.
420420
*/
421-
void createChar(uint8_t location, const prog_uchar charmap[]);
421+
void createChar(uint8_t location, const unsigned char charmap[]);
422422
#endif // __AVR__
423423

424424
/*!

libraries/MySensors/examples/IrrigationController/IrrigationController.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ Contributed by Jim ([email protected]) with much contribution from Pete (p
8484
#include <Time.h>
8585
#include <MySensor.h>
8686
#include <SPI.h>
87+
#include <LiquidCrystal.h>
8788
#include <LiquidCrystal_I2C.h>
89+
90+
8891
//
8992
#define NUMBER_OF_VALVES 8 // Change this to set your valve count up to 16.
9093
#define VALVE_RESET_TIME 7500UL // Change this (in milliseconds) for the time you need your valves to hydraulically reset and change state

0 commit comments

Comments
 (0)