Salve a tutti, sto creando un piccolo sketch per Arduino Mega. Dopo l'aggiornamento dell'IDE alla compilazione ho un errore sulla riga che contiene lcd.init(). L'errore in questione è within this context. Cosa significa?
Se necessario ecco il messaggio completo:
Arduino:1.6.10 (Windows 10), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:35:0,
from C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:1:
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LCD.h:71:40: warning: unused parameter 'uSec' [-Wunused-parameter]
inline static void waitUsec ( uint16_t uSec )
^
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LCD.h:444:43: warning: unused parameter 'value' [-Wunused-parameter]
virtual void setBacklightPin ( uint8_t value, t_backlighPol pol ) { };
^
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LCD.h:444:64: warning: unused parameter 'pol' [-Wunused-parameter]
virtual void setBacklightPin ( uint8_t value, t_backlighPol pol ) { };
^
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LCD.h:463:40: warning: unused parameter 'value' [-Wunused-parameter]
virtual void setBacklight ( uint8_t value ) { };
^
C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:22:32: warning: invalid conversion from 'int' to 't_backlighPol' [-fpermissive]
LiquidCrystal_I2C lcd(0x27,20,4);
^
In file included from C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:1:0:
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:53:4: note: initializing argument 3 of 'LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, t_backlighPol)'
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t backlighPin, t_backlighPol pol);
^
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h: In function 'void setup()':
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
int init();
^
clock:52: error: within this context
lcd.init(); // initialize the lcd
^
C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:40:7: warning: unused variable 'secondi' [-Wunused-variable]
int secondi = 0;
^
C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:41:7: warning: unused variable 'minuti' [-Wunused-variable]
int minuti = 0;
^
C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:42:7: warning: unused variable 'ore' [-Wunused-variable]
int ore = 0;
^
In file included from C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:1:0:
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h: In function 'void loop()':
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
int init();
^
clock:194: error: within this context
lcd.init();
^
In file included from C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:1:0:
C:\Users\Timothy\Documents\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
int init();
^
clock:405: error: within this context
lcd.init();
^
C:\Users\Timothy\Desktop\acquarium\clock\clock.ino: In function 'void imporario()':
C:\Users\Timothy\Desktop\acquarium\clock\clock.ino:530:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
if (10<=ore<=22) {
^
exit status 1
within this context
Questo report potrebbe essere più ricco di informazioni con l'opzione
"Mostra un output dettagliato durante la compilazione"
abilitata in File -> Impostazioni