I think you might have an old sketch with a new library. Verify in your library if this is correct, or maybe lcd.init(); After that change, it seemed to work.
diagram.json
{
"version": 1,
"author": "Anonymous maker",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-arduino-nano", "id": "nano", "top": 0, "left": 0, "attrs": {} },
{ "type": "wokwi-potentiometer", "id": "pot1", "top": -1.3, "left": 230.2, "attrs": {} },
{ "type": "wokwi-potentiometer", "id": "pot2", "top": 113.9, "left": 230.2, "attrs": {} },
{
"type": "wokwi-pushbutton-6mm",
"id": "btn4",
"top": -31,
"left": 163.2,
"attrs": { "color": "green" }
},
{
"type": "wokwi-pushbutton-6mm",
"id": "btn1",
"top": -50.2,
"left": 163.2,
"attrs": { "color": "green" }
},
{
"type": "wokwi-pushbutton-6mm",
"id": "btn2",
"top": -69.4,
"left": 163.2,
"attrs": { "color": "green" }
},
{ "type": "wokwi-led", "id": "led1", "top": -80.4, "left": -25, "attrs": { "color": "red" } },
{ "type": "wokwi-led", "id": "led2", "top": -118.8, "left": -25, "attrs": { "color": "red" } },
{ "type": "wokwi-led", "id": "led3", "top": -157.2, "left": -25, "attrs": { "color": "red" } },
{
"type": "wokwi-lcd1602",
"id": "lcd1",
"top": -147.2,
"left": 236,
"attrs": { "pins": "i2c" }
}
],
"connections": [
[ "pot1:GND", "nano:GND.1", "black", [ "v19.2", "h-115.2" ] ],
[ "pot1:SIG", "nano:A0", "green", [ "v28.8", "h-192.4" ] ],
[ "pot1:VCC", "nano:5V", "red", [ "v38.4", "h-125.6" ] ],
[ "pot2:GND", "nano:GND.1", "black", [ "v19.2", "h-86.4" ] ],
[ "pot2:SIG", "nano:A1", "green", [ "v28.8", "h-134.8" ] ],
[ "pot2:VCC", "nano:5V", "red", [ "v38.4", "h-116" ] ],
[ "nano:GND.2", "btn4:2.l", "black", [ "v0" ] ],
[ "nano:9", "btn4:1.l", "green", [ "v0" ] ],
[ "nano:GND.2", "btn1:2.l", "black", [ "v0" ] ],
[ "nano:GND.2", "btn2:2.l", "black", [ "v0" ] ],
[ "nano:10", "btn1:1.l", "green", [ "v0" ] ],
[ "nano:11", "btn2:1.l", "green", [ "v0" ] ],
[ "nano:GND.2", "led1:C", "black", [ "v-14.4", "h-144.5", "v-28.8" ] ],
[ "nano:GND.2", "led2:C", "black", [ "v-14.4", "h-144.5", "v-67.2" ] ],
[ "nano:GND.2", "led3:C", "black", [ "v-14.4", "h-144.5", "v-105.6" ] ],
[ "led1:A", "nano:3", "green", [ "v0", "h134.4" ] ],
[ "led2:A", "nano:4", "green", [ "v0", "h105.6" ] ],
[ "led3:A", "nano:6", "green", [ "v0", "h105.6" ] ],
[ "lcd1:SCL", "nano:A5", "green", [ "h-19.2", "v201.9", "h-134.4" ] ],
[ "lcd1:SDA", "nano:A4", "green", [ "h-28.8", "v221", "h-134.4" ] ],
[ "lcd1:VCC", "nano:5V", "red", [ "h-38.4", "v240.1", "h-76.8" ] ],
[ "lcd1:GND", "nano:GND.2", "black", [ "h0" ] ]
],
"dependencies": {}
}