TEA5767 the problem

#include <TEA5767.h>
#include <Wire.h>
#include <Button.h>
#include <LiquidCrystal_I2C.h>
#define BACKLIGHT_PIN 3
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7, BACKLIGHT_PIN, POSITIVE);

TEA5767 Radio;
double old_frequency;
double frequency;
int search_mode = 0;
int search_direction;
unsigned long last_pressed;

Button btn_forward(11, PULLUP);
Button btn_backward(12, PULLUP);

void setup() {
Wire.begin();
Radio.init();
Radio.set_frequency(104.5);
Serial.begin(9600);
lcd.init();
lcd.backlight(); //backlight is now ON
lcd.begin(16,2);
lcd.clear();
}

void loop() {

unsigned char buf[5];
int stereo;
int signal_level;
double current_freq;
unsigned long current_millis = millis();

if (Radio.read_status(buf) == 1) {
current_freq = floor (Radio.frequency_available (buf) / 100000 + .5) / 10;
stereo = Radio.stereo(buf);
signal_level = Radio.signal_level(buf);
lcd.setCursor(0,0);
lcd.print("FM: "); lcd.print(current_freq);
lcd.print("MHz ");
lcd.setCursor(0,1);
if (stereo) lcd.print("STEREO "); else lcd.print("MONO ");
lcd.print(signal_level);
lcd.print("/15 ");
}

if (search_mode == 1) {
if (Radio.process_search (buf, search_direction) == 1) {
search_mode = 0;
}
}

if (btn_forward.isPressed()) {
last_pressed = current_millis;
search_mode = 1;
search_direction = TEA5767_SEARCH_DIR_UP;
Radio.search_up(buf);
delay(500);
}

if (btn_backward.isPressed()) {
last_pressed = current_millis;
search_mode = 1;
search_direction = TEA5767_SEARCH_DIR_DOWN;
Radio.search_down(buf);
delay(500);
}
delay(100);
}

błędy

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328"
C:\Users\Grzegorz\Documents\Arduino\libraries\liquidcrystal/LiquidCrystal_I2C.h: In function 'void setup()':
C:\Users\Grzegorz\Documents\Arduino\libraries\liquidcrystal/LiquidCrystal_I2C.h:154: error: 'int LiquidCrystal_I2C::init()' is private
sketch_oct23b:23: error: within this context

my library
LiquidCrystal_V1.2.1.zip

tried to remove lcd.init(); from setup() ??

ok

and what happened?

robtillaart:
and what happened?

let you know tomorrow

gregor36:

robtillaart:
and what happened?

let you know tomorrow

works thanks

robtillaart:
tried to remove lcd.init(); from setup() ??

I'll bite, Rob, does

LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7, BACKLIGHT_PIN, POSITIVE);

handle the init?

Apparantly the init() is a private member of the LiquidCrystal_I2C class so it cannot be called directly.

it is called by begin()

void LiquidCrystal_I2C::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) 
{
   
   init();     // Initialise the I2C expander interface
   LCD::begin ( cols, lines, dotsize );   
}

a bit strange as it is the only place where init is called so the code could be transferred into begin()

Well you know that some programmers are compulsive about what they consider hard rules.
In this case, the only proper term is begin. Init is soooo last century. ;^)