Afficheur ne fonctionne pas

Bonjour. J'ai un souci d'afficheur. Comme d'habitude lors de panne, je charge un module minimaliste pour localiser la panne, mais là je sèche. L'ecran s'allume et reste allumé. Le blinking ne fonctionne pas. Rien ne s'affiche. J'ai changé d'afficheur, mais c'est pareil.

#include "LiquidCrystal_I2C.h"

LiquidCrystal_I2C LCD(0x27,16,2); // définit le type d'ecran lcd 16 x 2

void setup() {
  
   LCD.init(); // initialisation de l'afficheur
   LCD.backlight();
   
   LCD.setCursor(1, 0);
   LCD.print("HELLO");
  
   LCD.setCursor(8, 1);
   LCD.print("WORLD");
}

void loop() {
   LCD.noDisplay();
   delay(1000);
   LCD.display();
   delay(1000);
}

J'ai donc redémarré l'IDE depuis la console

2025-05-15T06:42:41.217Z monitor-service INFO started monitor to /dev/ttyACM0 using serial
2025-05-15T06:42:41.228Z monitor-service INFO No port configuration changes have been detected. No need to send configure commands to the running monitor serial:/dev/ttyACM0.
Warning: /usr/lib32/libvulkan_intel_hasvk.so: mauvaise classe ELF : ELFCLASS32
Warning: loader_icd_scan: Failed loading library associated with ICD JSON /usr/lib32/libvulkan_intel_hasvk.so. Ignoring this JSON
Warning: /usr/lib32/libvulkan_radeon.so: mauvaise classe ELF : ELFCLASS32
Warning: loader_icd_scan: Failed loading library associated with ICD JSON /usr/lib32/libvulkan_radeon.so. Ignoring this JSON
Warning: /usr/lib32/libvulkan_intel.so: mauvaise classe ELF : ELFCLASS32
Warning: loader_icd_scan: Failed loading library associated with ICD JSON /usr/lib32/libvulkan_intel.so. Ignoring this JSON
Warning: ../mesa-25.0.4/src/amd/vulkan/radv_physical_device.c:2010: Device '/dev/dri/renderD128' is not using the AMDGPU kernel driver: Argument invalide (VK_ERROR_INCOMPATIBLE_DRIVER)
Error: Loader Message: setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
Warning: vkEnumeratePhysicalDevices
    at GatherPhysicalDevices (../../third_party/dawn/src/dawn/native/vulkan/VulkanInfo.cpp:131)
    at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:353)
    at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

Pourtant le port incriminé fonctionne car je change assez facilement le programme.
C'est messages sont-ils normaux ou pas ? si quelqu'un pouvait m'aider.... Merci.

Bonjour thierryr51

Est tu sûre que ton nouvel afficheur a la même adresse que l'ancien?
Lances le scanner i2c pour le vérifier.

Cordialement
jpbbricole

Hello,

Comment as tu câblé ton afficheur STP?

Le câblage est simple 4 fils 2 pour l'alimentation+ SDA + scl.

---- Message d'origine ----

Le scanner me donne de bons résultats:

Scanning...
I2C device found at address 0x08  !
I2C device found at address 0x27  !
done

Le potentiomètre de contraste est à 50% ( suffisant pour voir quelque chose ) sa variation ne change rien.

Peut être un problème de librairie ?

Le peu que j'ai fais avec un LCD I²C incluait la bib wire.h.

Je me trompe sûrement!

wire.h sert au bus I²C
LiquidCrystal_I2C.h doit normalement l'inclure... ( Je présume )

Bonjour thierryr51

Tu présumes juste :wink:

Cordialement
jpbbricole

Le petit code donné en #1 vient de https://arduino-france.site/lcd-1602/
Ce serait compliqué de remettre en cause un tel site. :blush:

J'ai trouvé. Je me suis trompé d'une pin. Au lieu de 5v j'alimentais en 3.3v. Et ça ne se voit pas dans l'éclairage... Merci pour l'aide.

:roll_eyes: pas si compliqué, des sites qui ne sont pas la propriété intellectuelle de la marque Arduino, et qui contiennent les termes Arduino et France où fr, il y en a plusieurs vous savez!

Ils s'auto-proclament réference Arduino, sans vraiment l'être.

PS

Ce code ci dessous qui inclut la bibliothéque wire.h vient aussi du même site

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.