Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. compiling the sketch shows the error: within this context
  2.  
  3. C:\Users\OFFICE\Desktop\sketch_feb23c\sketch_feb23c\sketch_feb23c.ino:8:32: warning: invalid conversion from 'int' to 't_backlighPol' [-fpermissive]
  4.  
  5. LiquidCrystal_I2C lcd(0x3F,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
  6.  
  7. ^
  8.  
  9. In file included from C:\Users\OFFICE\Desktop\sketch_feb23c\sketch_feb23c\sketch_feb23c.ino:6:0:
  10.  
  11. C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:53:4: note: initializing argument 3 of 'LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, t_backlighPol)'
  12.  
  13. LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t backlighPin, t_backlighPol pol);
  14.  
  15. ^
  16.  
  17. C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h: In function 'void setup()':
  18.  
  19. C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
  20.  
  21. int init();
  22.  
  23. ^
  24.  
  25. sketch_feb23c:12: error: within this context
  26.  
  27. lcd.init(); // initialize the lcd
  28.  
  29. ^
  30.  
  31. In file included from C:\Users\OFFICE\Desktop\sketch_feb23c\sketch_feb23c\sketch_feb23c.ino:6:0:
  32.  
  33. C:\Program Files (x86)\Arduino\libraries\LiquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private
  34.  
  35. int init();
  36.  
  37. ^
  38.  
  39. sketch_feb23c:13: error: within this context
  40.  
  41. lcd.init();
  42.  
  43. ^
  44.  
  45. exit status 1
  46. within this context
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement