Can a Byvac display run off the LiquidCrystal lib

Good evening All

I have bought a Byvac BV4619 driver and 2x40 LCD which works fine with the Byvac library and the 4x4 key pad returns hex values direct which is nice. My problem is that I want to use a menu library in my project but most the better ones only support i2c with the LiquidCrystal library.

Its it possible to use this controller with standard library? I have tried most options but they either don't work or display rubbish. I have looked at the h files hoping to modify them but they are to different and beyond my capabilities.

Any help or guidance would be most appreciated.

this is the display and i2c libary

Thanks in advance

Ross77:
Its it possible to use this controller with standard library?

No. That is why they gave you a library - and it works!

Ross77:
I have looked at the h files hoping to modify them but they are to different and beyond my capabilities.

And beyond my present interest as well as it is largely unnecessary.

Ross77:
I have tried most options but they either don't work or display rubbish.

That would depend on what those "options" were.

You merely(!) need to write the Byvac library calls into your code.

Now, following the instructions for using "code" tags, show us your proposed or attempted code.

Hi Paul. Thanks for the quick reply.

I mainly want to check if I was on the right track or not before posting any code.

I have tried substituting the BV4619 lib in to menwiz sketch like so

#include <Wire.h>
#include <bv4619_I.h> // defines LCD
//#include <LCD.h>
//#include <LiquidCrystal_I2C.h>
#include <buttons.h>
#include <MENWIZ.h>
#include <EEPROM.h>

// DEFINE ARDUINO PINS FOR THE NAVIGATION BUTTONS
#define UP_BOTTON_PIN       9
#define DOWN_BOTTON_PIN     10
#define LEFT_BOTTON_PIN     7 
#define RIGHT_BOTTON_PIN    8
#define CONFIRM_BOTTON_PIN  12
#define ESCAPE_BOTTON_PIN   11
#define lcd1_addr 0x39

menwiz tree;
// create lcd obj using LiquidCrystal lib
//LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
LCD disp(0x39);

And I get a few errors when compiling :0)

Arduino: 1.6.5 (Windows Vista), Board: "Arduino Uno"

In file included from C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:25:0:
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.h:120:24: error: 'LCD' does not name a type
 #define MW_LCD         LCD   // this could help to change the library: your lcd data type
                        ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.h:214:3: note: in expansion of macro 'MW_LCD'
   MW_LCD*  lcd;
   ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::begin(void*, int, int)':
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:283:3: error: 'lcd' was not declared in this scope
   lcd=(MW_LCD*)l; 
   ^
In file included from C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:25:0:
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.h:120:24: error: 'LCD' was not declared in this scope
 #define MW_LCD         LCD   // this could help to change the library: your lcd data type
                        ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:283:8: note: in expansion of macro 'MW_LCD'
   lcd=(MW_LCD*)l; 
        ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:283:15: error: expected primary-expression before ')' token
   lcd=(MW_LCD*)l; 
               ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:283:16: error: expected ';' before 'l'
   lcd=(MW_LCD*)l; 
                ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::drawUsrScreen(char*)':
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:301:7: error: 'lcd' was not declared in this scope
       lcd->setCursor(0,k);
       ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::drawMenu(_menu*)':
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:372:3: error: 'lcd' was not declared in this scope
   lcd->setCursor(0,0);
   ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
 #define TSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
                                                           ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
 #define TSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
                                                           ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:53: error: expected primary-expression before 'const'
 #define TSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
                                                     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:29:53: error: expected ')' before 'const'
 #define TSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s); b[strlen(b)]=' ';itoa(cur_menu->cur_item+1,tmp,10);strcat(tmp,"/");itoa(cur_menu->idx_o,tmp+strlen(tmp),10);b[col-strlen(tmp)-1]=126;memcpy(b+(col-strlen(tmp)),tmp,strlen(tmp));b[l]=NULL;lcd->print(b)
                                                     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
 #define FSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
                                                           ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
 #define FSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
                                                           ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected primary-expression before 'const'
 #define FSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
                                                     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:30:53: error: expected ')' before 'const'
 #define FSFORM(b,s,l)    memset(b,32,l);strcpy_P(b,(const prog_char*)s);b[strlen(b)]=' ';b[l]=NULL;lcd->print(b)
                                                     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\Ross\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
    strcpy_P(&buf[1],(const prog_char*)mn->label);
                            ^

    ^

   ^
Error compiling.

Thanks in advance