besoin d'aide

Portrait de BIKINI315

Bonjour à tous;

Je suis un petit nouveau à utiliser les produits Arduino.

Je viens de recevoir un afficheur LCD IIC/i2c  et je ne trouve aucun modèle de branchement à une carte uno.

Quelqu'un pourrait-il m'aider ?

MERCI

Portrait de f1asm

Bonjour

voici un exemple 

/**
 * Displays text sent over the serial port (e.g. from the Serial Monitor) on
 * an attached LCD.
 */
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup()
{
  lcd.begin();
  lcd.backlight();
  
  // Initialize the serial port at a speed of 9600 baud
  Serial.begin(9600);

}

void loop()
{
//lcd.begin(16,2);
lcd.setCursor(0,0);
lcd.print("ok ca marche");
  if (Serial.available()) {
    // Wait a bit for the entire message to arrive
    delay(100);
    // Clear the screen
    lcd.clear();

    // Write all characters received with the serial port to the LCD.
    while (Serial.available() > 0) {
      lcd.write(Serial.read());
    }
  }
}