Skip to content

Commit

Permalink
change LCD library
Browse files Browse the repository at this point in the history
  • Loading branch information
vitotai committed Jan 9, 2017
1 parent c645299 commit d685cc0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BrewManiacEx/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
/* Don't touch them if you don't know what they are. */
/**************************************************************************************/

#define BME8266_VERSION "0.1"
#define BME8266_VERSION "0.1.1"

#define FIRMWARE_UPDATE_URL "http://brew.vito.tw/bmeupdate.php?info"
#define JS_UPDATE_URL "http://brew.vito.tw/bmejsupdate.php?v="
Expand Down
9 changes: 6 additions & 3 deletions BrewManiacEx/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ SSD1306 display(0x3C,I2C_SDA,I2C_SCL);
#else

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);

LiquidCrystal_I2C lcd(0x27, 20,4,YWROBOT);

#endif

Expand Down Expand Up @@ -248,6 +249,8 @@ const byte PumpSymbol[8] PROGMEM = {B00000, B01110, B01010, B01110, B01000, B0
const byte RevPumpSymbol[8] PROGMEM = {B11111, B10001, B10101, B10001, B10111, B10111, B10111, B11111}; // [4] Reverse PUMP Symbol
const byte HeatingSymbol[8] PROGMEM = { B00000, B01010, B01010, B01110, B01110, B01010, B01010, B00000}; // [5] HEAT symbol
const byte RevHeatingSymbol[8] PROGMEM = {B11111, B10101, B10101, B10001, B10001, B10101, B10101, B11111}; // [6] reverse HEAT symbol
const byte RevSpargeHeatingSymbol[8] PROGMEM={B11111,B10001,B1111,B10001,B11110,B1110,B10001,B11111};


#define CreatecCustomChar(buff,idx,bm) uiGetBitmap((byte*)buff,bm); lcd.createChar(idx,(byte*)buff)

Expand Down Expand Up @@ -335,7 +338,7 @@ void uiLcdInitialize(void)
{
char buffer[12];
uiScanLcdAddress();
lcd.begin();
lcd.begin(20,4);
if(gIsUseFahrenheit)
{
CreatecCustomChar(buffer,LcdCharDegree,FahrenheitSymbol);
Expand All @@ -351,7 +354,7 @@ void uiLcdInitialize(void)
CreatecCustomChar(buffer,LcdCharRevPump,RevPumpSymbol);
CreatecCustomChar(buffer,LcdCharHeating,HeatingSymbol);
CreatecCustomChar(buffer,LcdCharRevHeating,RevHeatingSymbol);
//CreatecCustomChar(buffer,LcdCharWireless,WirelessSymbol);
CreatecCustomChar(buffer,LcdCharRevSpargeHeating,RevSpargeHeatingSymbol);
}
#endif //#if LCD_USE_SSD1306 == true

Expand Down
4 changes: 2 additions & 2 deletions libs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Since the libraries might change over time, my code might not work with the newe
https://github.com/me-no-dev/ESPAsyncWebServer
* ESP8266HTTPUpdateServer
https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266HTTPUpdateServer (newer version is needed. you might need to manually download it)
* LiquidCrystal-I2C
https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
* LiquidCrystal-I2C_V3
https://github.com/dino0815/LiquidCrystal_I2C_V3/blob/master/LiquidCrystal_I2C.cpp
* PCF8574_ESP
https://github.com/WereCatf/PCF8574_ESP
* PID_v1
Expand Down
Binary file modified libs/libraries.zip
Binary file not shown.

0 comments on commit d685cc0

Please sign in to comment.