Résolu TFT::background problème

Bonjour à tous,

J'utilise sur ma carte arduino Due, une puce Bluetooth de chez adafruit, ainsi qu'un écran LCD arduino (l'écran officiel).

Cependant lorsque j'efface l'écran avec la fonction background mon bluetooth n'est plus detectable (wtf?) alors que si je commente la ligne : TFTscreen.background(255, 255, 255); mon Bluetooth fonctionne parfaitement.
je cherche donc à effectuer un debug pour comprendre d'ou viens le problème.

Dans le fichier Adafruit_GFX.cpp (fichier où se trouve la fonction 'background' dans la librairie TFT) on peut voir que background est censé exécuter la fonction :

void Adafruit_GFX::fillScreen(uint16_t color)

j'ai donc réécrit les fonctions suivantes pour mieux comprendre le mode d'exécution :

void Adafruit_GFX::background(uint8_t red, uint8_t green, uint8_t blue) 
{
    Serial.println("background begin");
  background(newColor(red, green, blue));
    Serial.println("background finished");
}

void Adafruit_GFX::background(color c) {
    Serial.println("background one color started");
  fillScreen(c);
    Serial.println("background one color finished");
}

void Adafruit_GFX::fillScreen(uint16_t color) {
    Serial.println("fillScreen started");
  fillRect(0, 0, _width, _height, color);
    Serial.println("fillScreen finished");
}

J'ai donc bien mes print des background qui s'affichent, mais fillScreen semble ne pas être exécutée.

Avez vous une idée du problème ?

Cordialement,
Minicarpet

J'ai trouvé le problème je ne regardais pas la bonne libraire....