J'ai besoin d'afficher un code hexadécimal 000102 sur un écran LCD mais il montre 012
#include <string.h>
char buf[7];
sprintf(buf, "%02x%02x%02x", byte1, byte2, byte3);
lcd.print(buf);
mais il faut ajouter la bibliothèque string n’est ce pas
non, je n'utilise pas string, mais "libc", qui est d'office inclus
mais il faut ajouter la bibliothèque string n'est ce pas
Donc?
mais n’existe pas mr AWOL
ne mets pas le “include #<string.h>”, c’est peut-être inclus d’office par l’IDE
merciii infiniment ca marche