Bonjour
Voila j essaie de compiler le programme de demo Character Flow donner avec le Tick Shield mais je recois ce message d erreur
Arduino : 1.7.10 (Windows 7), Carte : "Arduino Uno"
CharacterFlow.ino:25:20: fatal error: TM1636.h: No such file or directory
compilation terminated.
Erreur lors de la compilation.
J'ai pourtant bien installé la bibliothèque fourni pour ce shield
#include "TM1636.h"
//--Declare a TM1636 Class object that control the 4-digit display--//
TM1636 tm1636(7,8);
void setup()
{
/*Set the default brightness is BRIGHT_TYPICAL and clear the display*/
tm1636.init();
}
void loop()
{
int8_t NumTab[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};//index of 0~9,A,b,C,d,E,F
int8_t table_length;
table_length = sizeof(NumTab);//get the length of the number table: NumTab
int8_t disp[4];//store the index of the 4 digit to display.
unsigned char digit_index = 0;
unsigned char starting_index = 0;//starting index of NumTab
while(1)
{
digit_index = starting_index;
starting_index ++;
if(starting_index == table_length)
{
starting_index = 0;//start again
}
for(unsigned char BitSelect = 0;BitSelect < 4;BitSelect ++)
{
disp[BitSelect] = NumTab[digit_index];
digit_index ++;
if(digit_index == table_length) digit_index = 0;
}
tm1636.display(disp);//display on the 4-digit display.
delay(300);//display 4-digit number for 300ms and then it will change.
}
}
Les bibliothèques (libraries en anglais) que tu ajoutes doivent être installée dans le répertoire "arduinoxyz" (1) qui a été créé automatiquement dans ton compte personnel.
Théoriquement rien n'oblige à les placer là mais l'IDE est configurée pour aller les chercher dans ce répertoire précis.
C'est dans ce répertoire que ce trouve également le fichier "preferences" et ton "carnet de croquis".
Il ne faut surtout pas les placer avec celles fournis avec l'IDE car elles seraient effacées à la prochaine mise à jour de l'ide.
Important :
(1) selon la version de l'IDE il peut y avoir des variantes dans le nom : arduino, arduino15, arduino17