I have tested following your guidelines, SDA&SCL not connected:
-The LCD powered with 3V3: same than before, i.e. the backlight is OK but no digits at all:
-The LCD powered with 5V, SDA&SCL not connected, the result is exactly the same: the backlight is OK but nothing else is displayed:
Consequently I see 2 possibilities:
a-.The LCD display is dead.
b-.The I2C->// backboard, soldered behind the LCD does not work, or is not soldered as it should, despite the pins numbering matching with the LCD.
I have another possible backboard, similar to the one you have used, like this:
I have never used this kind of board, but I could try it, the problem being that I am not sure to unsolder the one that is currently soldered... will try but it is maybe simpler to order another LCD.
Last bad news, the program does not compile on PlatformIO (it says "Error 1"), nor on Arduino 1.8.19 (error at the same program location, related to the "#include <LiquidCrystal_I2Cw2.h>" line):
Code:
Executing task in folder I2C_T4_Helloworld_wire2: C:\Users\ordic\.platformio\penv\Scripts\platformio.exe run
Processing teensy40 (platform: teensy; board: teensy40; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html
PLATFORM: Teensy (5.0.0) > Teensy 4.0
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy @ 1.159.0 (1.59)
- tool-teensy @ 1.159.0 (1.59)
- toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 92 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wire @ 1.0
Building in release mode
Compiling .pio\build\teensy40\src\main.cpp.o
Archiving .pio\build\teensy40\libeb7\libWire.a
Compiling .pio\build\teensy40\FrameworkArduino\eeprom.c.o
Compiling .pio\build\teensy40\FrameworkArduino\extmem.c.o
Compiling .pio\build\teensy40\FrameworkArduino\fuse.c.o
Compiling .pio\build\teensy40\FrameworkArduino\interrupt.c.o
Compiling .pio\build\teensy40\FrameworkArduino\keylayouts.c.o
Compiling .pio\build\teensy40\FrameworkArduino\libc.c.o
Compiling .pio\build\teensy40\FrameworkArduino\main.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\memcpy-armv7m.S.o
Compiling .pio\build\teensy40\FrameworkArduino\memset.S.o
Compiling .pio\build\teensy40\FrameworkArduino\new.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\nonstd.c.o
Compiling .pio\build\teensy40\FrameworkArduino\pwm.c.o
Compiling .pio\build\teensy40\FrameworkArduino\rtc.c.o
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent1.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent2.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent3.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent4.cpp.o
src\main.cpp:7:10: fatal error: LiquidCrystal_I2Cw2.h: No such file or directory
*****************************************************************************
* Looking for LiquidCrystal_I2Cw2.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:LiquidCrystal_I2Cw2.h"
* Web > https://registry.platformio.org/search?q=header:LiquidCrystal_I2Cw2.h
*
*****************************************************************************
7 | #include <LiquidCrystal_I2Cw2.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent5.cpp.o
compilation terminated.
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent6.cpp.o
Compiling .pio\build\teensy40\FrameworkArduino\serialEvent7.cpp.o
*** [.pio\build\teensy40\src\main.cpp.o] Error 1
============================================================== [FAILED] Took 1.02 seconds ==============================================================
* The terminal process "C:\Users\ordic\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
So after these bad news, I will read your feedback with pleasure, and I am going to try to unsolder the backboard...