Nokia 5110 LCD issue

Hi all, I'm having trouble with the following code, trying to write on a Nokia 5110 old LCD:

#include <Nokia_LCD.h>
#include <BH1750.h>

const unsigned char splash[504] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x1C, 0x18, 0x00, 0x80, 0x80,
0xC0, 0xC0, 0xC7, 0xC7, 0xC7, 0xC0, 0xC0, 0x80, 0x80, 0x00, 0x18, 0x1C, 0x18, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x00, 0xE0, 0xF8, 0xFC, 0xFE,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE,
0xFC, 0xF8, 0xE0, 0x00, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x00, 0x00, 0x80, 0xE0, 0x60, 0x30, 0x30, 0x30, 0x30,
0x10, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x00, 0x30, 0x30, 0x30,
0xF0, 0xF0, 0x30, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00,
0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00,
0x00, 0x7F, 0x7F, 0x60, 0x60, 0x60, 0x60, 0x00, 0x00, 0x7F, 0x7F, 0x00, 0x00, 0x0F, 0x3F, 0x70,
0x60, 0x60, 0x66, 0x7E, 0x7E, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x06, 0x06, 0x06, 0x06, 0x7F, 0x7F,
0x00, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x06, 0x07, 0x06, 0x00, 0x00, 0x00, 0x03, 0x0F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x0F, 0x03, 0x00, 0x00, 0x00, 0x06, 0x07, 0x06, 0x00,
0xC0, 0xF8, 0x18, 0xF8, 0xC0, 0x00, 0xC0, 0xF8, 0x18, 0xF8, 0xE0, 0x00, 0xF8, 0xF8, 0x18, 0x18,
0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0xF8, 0xF8, 0x18, 0x18, 0x18, 0x00, 0xF8, 0xF8, 0x18, 0x18,
0x18, 0x18, 0x00, 0x00, 0xF8, 0xF8, 0x18, 0x18, 0x18, 0xF8, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x67, 0xE7,
0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0x67, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x00, 0x03, 0x3F, 0x3C, 0x1F, 0x01, 0x00, 0x3F, 0x3F, 0x00,
0x3F, 0x3F, 0x33, 0x33, 0x33, 0x33, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x00, 0x00, 0x00, 0x00,
0x3F, 0x3F, 0x33, 0x33, 0x33, 0x33, 0x00, 0x00, 0x3F, 0x3F, 0x03, 0x03, 0x07, 0x3F, 0x38, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0E, 0x0E, 0x3E, 0x7E, 0x7E, 0x7E, 0x7E, 0x7E, 0x3E, 0x0E, 0x0E, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
};

const unsigned char ui[504] PROGMEM = {
0xFF, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xFD, 0xFD, 0xFD, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0xFD, 0xFD, 0xFD, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xFD, 0xFD, 0xFD, 0x01,
0x05, 0x0D, 0x3D, 0xFD, 0xF9, 0xE1, 0x01, 0xE1, 0xF9, 0xFD, 0x3D, 0x0D, 0x05, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x80,
0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x3F, 0xFF, 0xFF, 0xC0, 0x80, 0x80, 0x80, 0x80, 0xC0,
0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x80, 0xE0, 0xF0, 0xFF, 0x3F, 0x1F, 0x7F, 0xFF, 0xF0, 0xE0, 0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x18, 0x18, 0x18, 0x18, 0x19, 0x1B, 0x1B,
0x1B, 0x1B, 0x1B, 0x1B, 0x19, 0x18, 0x18, 0x18, 0x1A, 0x1B, 0x1B, 0x1B, 0x19, 0x18, 0x18, 0x18,
0x19, 0x1B, 0x1B, 0x1B, 0x1A, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0xFF, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xFF, 0xFF, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xFF, 
};

Nokia_LCD lcd(8,9,10,11,12,7);
BH1750 lightSensor;
String light;

void setup() {
 
//  lightSensor.begin();
 lcd.begin();
  lcd.setBacklight(false);
 lcd.setContrast(60);
 lcd.clear();
 delay(2000);
 lcd.draw(splash, sizeof(splash) / sizeof(splash[0]), true);
 delay(3000);
 
   lcd.setBacklight(true);

}

void loop() {
  
 int stringLength=0;
 
uint16_t lux = lightSensor.readLightLevel();
 
light = String(lux);
 stringLength = light.length();
 
//  lcd.clear();
// lcd.draw(ui, sizeof(ui) / sizeof(ui[0]), true);
//  printLight(stringLength);
 
 delay(150);
}

void printLight(int length)
{
  switch(length)
  {
    case 1:  lcd.print(light,68,22); break;
    case 2:  lcd.print(light,54,22); break;
    case 3:  lcd.print(light,40,22); break;
    case 4:  lcd.print(light,26,22); break;
    case 5:  lcd.print(light,12,22); break;
    default:  lcd.print(light,0,22); break;
  }
}

The compiler give me:
Compilation error: no matching function for call to 'Nokia_LCD::print(String&, int, int)'

Using this 5110 library: GitHub - platisd/nokia-5110-lcd-library: Arduino library for driving the Nokia 5110 LCD

lcd.setCursor(68,22);    //First try setting the cursor
lcd.print(light);              //Then print whatever String/char you wish

doesn't solve ...
with the switch statement simplified as :

  switch(length)
  {
    case 1:  lcd.print(light,68,22); break;
    // case 2:  lcd.print(light,54,22); break;
    // case 3:  lcd.print(light,40,22); break;
    // case 4:  lcd.print(light,26,22); break;
    // case 5:  lcd.print(light,12,22); break;
    // default:  lcd.print(light,0,22); break;
  }
}

the conplete error messages is:

FQBN: arduino:avr:nano:cpu=atmega328old
Using board 'nano' from platform in folder: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6

Detecting libraries used...
/home/gigi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp -o /dev/null
Alternatives for Nokia_LCD.h: [Nokia 5110 LCD library@2.7.1]
ResolveLibrary(Nokia_LCD.h)
  -> candidates: [Nokia 5110 LCD library@2.7.1]
/home/gigi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp -o /dev/null
Alternatives for BH1750.h: [BH1750@1.3.0]
ResolveLibrary(BH1750.h)
  -> candidates: [BH1750@1.3.0]
/home/gigi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src -I/home/gigi/Arduino/libraries/BH1750/src /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/home/gigi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src -I/home/gigi/Arduino/libraries/BH1750/src -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire/src /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp -o /dev/null
Using cached library dependencies for file: /home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.cpp
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
Using cached library dependencies for file: /home/gigi/Arduino/libraries/BH1750/src/BH1750.cpp
Using cached library dependencies for file: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire/src/Wire.cpp
Using cached library dependencies for file: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire/src/utility/twi.c
Using cached library dependencies for file: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/SPI/src/SPI.cpp
Generating function prototypes...
/home/gigi/Documents/Arduino/BH1750LightMeter/BH1750LightMeter.ino: In function 'void printLight(int)':
/home/gigi/Documents/Arduino/BH1750LightMeter/BH1750LightMeter.ino:114:35: error: no matching function for call to 'Nokia_LCD::print(String&, int, int)'
 //     case 2:  lcd.print(light,54,22); break;
                                   ^
In file included from /home/gigi/Documents/Arduino/BH1750LightMeter/BH1750LightMeter.ino:1:0:
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:123:10: note: candidate: bool Nokia_LCD::print(const char*)
     bool print(const char *string);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:123:10: note:   candidate expects 1 argument, 3 provided
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:124:10: note: candidate: bool Nokia_LCD::print(char)
     bool print(char character);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:124:10: note:   candidate expects 1 argument, 3 provided
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:125:10: note: candidate: bool Nokia_LCD::print(int)
     bool print(int number);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:125:10: note:   candidate expects 1 argument, 3 provided
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:126:10: note: candidate: bool Nokia_LCD::print(unsigned int)
     bool print(unsigned int number);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:126:10: note:   candidate expects 1 argument, 3 provided
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:127:10: note: candidate: bool Nokia_LCD::print(long int)
     bool print(long number);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:127:10: note:   candidate expects 1 argument, 3 provided
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:128:10: note: candidate: bool Nokia_LCD::print(long unsigned int)
     bool print(unsigned long number);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:128:10: note:   candidate expects 1 argument, 3 provided
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:138:10: note: candidate: bool Nokia_LCD::print(double, short unsigned int)
     bool print(double number, unsigned short decimals = 2);
          ^~~~~
/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src/Nokia_LCD.h:138:10: note:   candidate expects 2 arguments, 3 provided

/home/gigi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src -I/home/gigi/Arduino/libraries/BH1750/src -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire/src -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/SPI/src /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp -o /tmp/1242593059/sketch_merged.cpp
/home/gigi/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/1242593059/sketch_merged.cpp
Compiling sketch...
/home/gigi/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs -I/home/gigi/Arduino/libraries/Nokia_5110_LCD_library/src -I/home/gigi/Arduino/libraries/BH1750/src -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire/src -I/home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/SPI/src /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp -o /tmp/arduino/sketches/1272B734A0ADCAF2AB4220D6DFE0B2B8/sketch/BH1750LightMeter.ino.cpp.o
Using library Nokia 5110 LCD library at version 2.7.1 in folder: /home/gigi/Arduino/libraries/Nokia_5110_LCD_library 
Using library BH1750 at version 1.3.0 in folder: /home/gigi/Arduino/libraries/BH1750 
Using library Wire at version 1.0 in folder: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire 
Using library SPI at version 1.0 in folder: /home/gigi/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/SPI 
exit status 1

Compilation error: no matching function for call to 'Nokia_LCD::print(String&, int, int)'

It looks horrendous. Why don't you use the Philips pcd8544 library like most everybody else. I believe the Karlsen/RinkyDink library is much the same and is bound to be well-documented.

Thanks Nick for your suggestion. I tryed to use the Platis's library because it is the first lib listed on Google after searching for "nokia 5110 arduino library" ... :grinning:

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