la j'ai
static const byte ASCII[][5] = {
{0x00, 0x00, 0x00, 0x00, 0x00} // 20
,{0x00, 0x00, 0x5f, 0x00, 0x00} // 21 !
// ...
,{0x10, 0x08, 0x08, 0x10, 0x08} // 7e ?
,{0x78, 0x46, 0x41, 0x46, 0x78} // 7f ?
};
dans la cpp avant le constructeur Nokia::Nokia.
Et rien dans le header.
Mais ces erreurs
C:\Users\pierre-yves\Desktop\arduino-0022\libraries\N5110\Nokia.cpp:9: error: 'static' may not be used when defining (as opposed to declaring) a static data member
C:\Users\pierre-yves\Desktop\arduino-0022\libraries\N5110\Nokia.cpp:9: error: 'const byte Nokia::ASCII [][5]' is not a static member of 'class Nokia'
C:\Users\pierre-yves\Desktop\arduino-0022\libraries\N5110\Nokia.cpp: In member function 'void Nokia::writechar(char)':
C:\Users\pierre-yves\Desktop\arduino-0022\libraries\N5110\Nokia.cpp:161: error: 'ASCII' was not declared in this scope
ça m'enerve, je comprend pas le probleme
EDIT:
Ah avec
static byte ASCII[][5];
dans le header
et
byte Nokia::ASCII[][5] = {
{0x00, 0x00, 0x00, 0x00, 0x00} // 20
,{0x00, 0x00, 0x5f, 0x00, 0x00} // 21 !
,{0x00, 0x07, 0x00, 0x07, 0x00} // 22 "
,{0x14, 0x7f, 0x14, 0x7f, 0x14} // 23 #
...
,{0x00, 0x00, 0x7f, 0x00, 0x00} // 7c |
,{0x00, 0x41, 0x36, 0x08, 0x00} // 7d }
,{0x10, 0x08, 0x08, 0x10, 0x08} // 7e ?
,{0x78, 0x46, 0x41, 0x46, 0x78} // 7f ?
};
avant le constructeur dans le cpp:
ça compile
Et ça marche ! c'est quand même plus pratique et beau que de copier toutes les fonctions du code sur arduino.cc !
Merci