Cherche aides MENWIZ !

Bonjour,
arrivant à la fin d'un projet, j'aurais besoin d'un menu pour celui-ci.
Au file des recherches, j'ai trouvé MENWIZ, il correspond exactement à mes attentes: User screen ; Splash screen ; EEprom ; rotary encoder et LCD I2C. :smiley:
Le problème est que je planche dessus depuis plus d'un jour à juste essayer de lancer l'example inclu. :confused:
J'ai pourtant bien installé les bibliothèques fournies avec.
J'ai configuré MENWIZ.h sans résultat.
J'ai également essayer la version: MENWIZ_1_3_2
Rien ni fait, j'ai toujours des erreurs de compilation.

Quelqu'un aurait t'il déjà réussi à utiliser MENWIZ, svp ??

Si tu nous disais quelles erreurs avec quel code ce serait surement plus facile pour t'aider.

Ben les codes d'exemples fournis avec MENWIZ, pour commencer.

Les erreurs sont les mêmes pour les 2 examples fournis en version 1_2_0:

C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::drawMenu(_menu*)':
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:376:5: note: in expansion of macro 'TSFORM'
     TSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:379:5: note: in expansion of macro 'FSFORM'
     FSFORM(buf,mc->label,(int) col);
     ^
C:\Users\TheDaverMan\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);
                            ^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:22: error: expected primary-expression before 'const'
    strcpy_P(&buf[1],(const prog_char*)mn->label);
                      ^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:403:22: error: expected ')' before 'const'
C:\Users\TheDaverMan\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\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:496:19: note: in expansion of macro 'FSFORM'
                   FSFORM(buf,op->label,(int) col-1);
                   ^
C:\Users\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp: In member function 'void menwiz::drawList(_menu*, int)':
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
   FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
   ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
   FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
   ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
   FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
   ^
C:\Users\TheDaverMan\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\TheDaverMan\Documents\Arduino\libraries\MENWIZ\MENWIZ.cpp:567:3: note: in expansion of macro 'FSFORM'
   FSFORM(buf,((_option*)mc->o[i])->label,(int)cw-1);
   ^
Erreur lors de la compilation.

J'ai effacé une partie car il y avait trop de caractères pour le post.

La version 1_3_2 donne ceci:

LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_pinToOutputRegister(unsigned char, unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_pinToInputRegister(unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_pinToBit(unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_digitalWrite(unsigned char volatile*, unsigned char, unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_digitalRead(unsigned char volatile*, unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_shiftOut(unsigned char volatile*, unsigned char, unsigned char volatile*, unsigned char, unsigned char, unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_shiftOut(unsigned char volatile*, unsigned char, unsigned char volatile*, unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_shiftOut1_init(unsigned char volatile*, unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_shiftOut1_init(unsigned char)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_shiftOut1(unsigned char volatile*, unsigned char, unsigned char, bool)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\FastIO.cpp.o: In function `fio_pinToOutputRegister(unsigned char, unsigned char)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: multiple definition of `fio_shiftOut1(unsigned char, unsigned char, bool)'
LiquidCrystal\FastIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/FastIO.cpp:36: first defined here
LiquidCrystal\I2CIO.cpp.o: In function `I2CIO::I2CIO()':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: multiple definition of `I2CIO::I2CIO()'
LiquidCrystal\I2CIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: first defined here
LiquidCrystal\I2CIO.cpp.o: In function `I2CIO::I2CIO()':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: multiple definition of `I2CIO::I2CIO()'
LiquidCrystal\I2CIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: first defined here
LiquidCrystal\I2CIO.cpp.o: In function `I2CIO::I2CIO()':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: multiple definition of `I2CIO::pinMode(unsigned char, unsigned char)'
LiquidCrystal\I2CIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: first defined here
LiquidCrystal\I2CIO.cpp.o: In function `I2CIO::I2CIO()':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: multiple definition of `I2CIO::portMode(unsigned char)'
LiquidCrystal\I2CIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: first defined here
LiquidCrystal\I2CIO.cpp.o: In function `I2CIO::I2CIO()':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: multiple definition of `I2CIO::begin(unsigned char)'
LiquidCrystal\I2CIO.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/I2CIO.cpp:44: first defined here
LiquidCrystal\I2CIO.cpp.o: In function `I2CIO::I2CIO()':







C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: multiple definition of `LiquidCrystal_SR3W::LiquidCrystal_SR3W(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, t_backlighPol)'
LiquidCrystal\LiquidCrystal_SR3W.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: first defined here
LiquidCrystal\LiquidCrystal_SR3W.cpp.o: In function `LiquidCrystal_SR3W::setBacklightPin(unsigned char, t_backlighPol)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: multiple definition of `LiquidCrystal_SR3W::LiquidCrystal_SR3W(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, t_backlighPol)'
LiquidCrystal\LiquidCrystal_SR3W.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: first defined here
LiquidCrystal\LiquidCrystal_SR3W.cpp.o: In function `LiquidCrystal_SR3W::setBacklightPin(unsigned char, t_backlighPol)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: multiple definition of `LiquidCrystal_SR3W::loadSR(unsigned char)'
LiquidCrystal\LiquidCrystal_SR3W.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: first defined here
LiquidCrystal\LiquidCrystal_SR3W.cpp.o: In function `LiquidCrystal_SR3W::setBacklightPin(unsigned char, t_backlighPol)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: multiple definition of `LiquidCrystal_SR3W::setBacklight(unsigned char)'
LiquidCrystal\LiquidCrystal_SR3W.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: first defined here
LiquidCrystal\LiquidCrystal_SR3W.cpp.o: In function `LiquidCrystal_SR3W::setBacklightPin(unsigned char, t_backlighPol)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: multiple definition of `LiquidCrystal_SR3W::write4bits(unsigned char, unsigned char)'
LiquidCrystal\LiquidCrystal_SR3W.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: first defined here
LiquidCrystal\LiquidCrystal_SR3W.cpp.o: In function `LiquidCrystal_SR3W::setBacklightPin(unsigned char, t_backlighPol)':
C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: multiple definition of `LiquidCrystal_SR3W::send(unsigned char, unsigned char)'
LiquidCrystal\LiquidCrystal_SR3W.cpp.o:C:\Users\TheDaverMan\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_SR3W.cpp:185: first defined here
collect2.exe: error: ld returned 1 exit status
Erreur lors de la compilation.