Bonjour,
Dans un de mes petits programmes j'ai besoin de stocker plusieurs constantes qui vont me servir a afficher des bitmap à l'aide de la librairie de chez Adafruit.
Un exemple:
const unsigned char icone01d [] PROGMEM = {
0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x03, 0x00,
0x18, 0x00, 0xc0, 0x03, 0x80, 0x00, 0x01, 0xc0, 0x01, 0xc0, 0x00, 0x03, 0x80, 0x00, 0xe0, 0x00,
0x07, 0x00, 0x00, 0x60, 0x7e, 0x06, 0x00, 0x00, 0x01, 0xff, 0x80, 0x00, 0x00, 0x07, 0xff, 0xe0,
0x00, 0x00, 0x0f, 0x81, 0xf0, 0x00, 0x00, 0x0e, 0x00, 0x70, 0x00, 0x00, 0x1c, 0x00, 0x38, 0x00,
0x00, 0x1c, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x1c, 0x00, 0x00, 0x38, 0x00, 0x1c, 0x00, 0xfe,
0x38, 0x00, 0x1c, 0x7f, 0xfe, 0x38, 0x00, 0x1c, 0x7f, 0x00, 0x38, 0x00, 0x1c, 0x00, 0x00, 0x38,
0x00, 0x1c, 0x00, 0x00, 0x1c, 0x00, 0x38, 0x00, 0x00, 0x1c, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00,
0x70, 0x00, 0x00, 0x0f, 0x81, 0xf0, 0x00, 0x00, 0x07, 0xff, 0xe0, 0x00, 0x00, 0x01, 0xff, 0x80,
0x00, 0x00, 0x60, 0x7e, 0x06, 0x00, 0x00, 0xe0, 0x00, 0x07, 0x00, 0x01, 0xc0, 0x00, 0x03, 0x80,
0x03, 0x80, 0x00, 0x01, 0xc0, 0x03, 0x00, 0x18, 0x00, 0xc0, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00,
0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00,};
Comme j'en ai une bonne dizaine à utiliser je me demandais s'il est possible de les stocker dans un fichier annexe afin de ne pas surcharger mon fichier principale.
A l'aide d'un #include icone.ino est-ce possible?
Merci de votre aide.