16 by 2 display with I2c module not working with r4 wifi

using a 16 by 2 display with the r4 wifi but not getting anything to show up on the screen.. I got the i2c address however couldn't get any output on the display this was the code I had typed please guide me


Please do not post screen shots of code. Post your code using the <CODE/> tag tool, as outlined in How to get the best out of this forum.

I don't recognize that library, here is what I use and everyone I know.

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

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

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print("Hello, world!");
}


void loop()
{
}

I had tried using this code however it gave an error saying that the architecture is not a supported one I was able to compiler and run the code but it didn’t show anything on the display

type or paste code here
```#include <Wire.h>
#include <LiquidCrystal_I2C.h>

// Replace '0x27' with your LCD's I2C address
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  lcd.begin();
  lcd.backlight();
  lcd.setCursor(0, 0);
  lcd.print("Hello, World!");
}

void loop() {
  // No actions needed in loop
}

Sorry, I don't understand. First you say 'architecture not suported' What board gave that error?
Then you say you did compile and run but nothing showed. Did you adjust the control on the back?
This code is from the samples, it works for everyone but you.


this is the error I get I am using the uno r4 wifi

You will either need to change boards or find another LCD library.

Hi @anay593948.

It is important to understand the difference between warnings and errors. A warning is the software telling you there is something that could possibly cause a problem, but is not considered fatal. An error is a fatal problem . In this case you have posted a warning, not an error. In order to avoid confusion, we should be careful to use the appropriate terminology when communicating about technical subjects.

Despite what the warning tells you, the library is in fact compatible with your board.

This warning is based on a list of board architectures defined as compatible by the library author. Because Arduino has created a standardized universal core API, libraries that use only that high level API are often compatible with all Arduino boards, even though there are significant low level differences between board architectures. However, library authors sometimes only feel comfortable with specifying compatibility with the architectures they have personally verified the library works with. So this "may be incompatible with your current board" warning is sometimes displayed even when there is no incompatibility.

Please provide a description of the circuit between the display and the UNO R4 WiFi board. The problem might be caused by some issue in your circuit.

The best way to provide such a description is in the form of a schematic diagram.

this only proofs that the PCF chip is responding.

do following

  • add a blinking backlight in your loop (lcd.backlight() - delay - lcd.noBacklight() - delay) to see if at least the backlight circuit is working
  • adjust the potentiometer on the PCF board so you can see black boxes on LCD
  • the PCF board MUST BE SOLDERED to the LCD.

if you can't get it working

  • show pictures of your Soldering LCD-PCF Board and show pictures of each connection between your microcontroller and the boards