Notifications
Clear all

New member - Phil

5 Posts
4 Users
1 Likes
731 Views
(@arduinophil)
Member
Joined: 3 years ago
Posts: 2
Topic starter  

Hi

I've just joined the forum. I'm over 65 and have been interested in small electronics for decades. Last year I was following a you tuber who was making an 8 bit computer and found this fascinating. This got me interested in Arduino projects and so I spend a lot of my time trying to work out how things work they way they do.

At the moment I'm having trouble getting a library to install properly (New LCD Library).

 

Would appreciate any help you can give.

 

Thanks,

 

Phil


   
Sean451 reacted
Quote
SecondLaw
(@secondlaw)
Member
Joined: 3 years ago
Posts: 20
 
Posted by: @arduinophil

At the moment I'm having trouble getting a library to install properly (New LCD Library).

Hello and welcome, Phil, can you be more specific about your difficulty? Seems this happens most often when the user does not properly connect via the right COMM port. Is it just the LCD library, or are you having issues with uploading overall?  Maybe others can jump in once you provide more specificity. 

 

Good luck 


   
ReplyQuote
(@arduinophil)
Member
Joined: 3 years ago
Posts: 2
Topic starter  

Hi SecondLaw and thanks for the reply. I'm trying out the I2C demo - LCD Display with I2C Interface Demo
lcd-i2c-demo.ino
Use NewLiquidCrystal Library
DroneBot Workshop 2018

 

COM Port looks OK.

This is the error message I get:

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

cd-i2c-demo:24:65: error: 'POSITIVE' was not declared in this scope
LiquidCrystal_I2C lcd(i2c_addr, en, rw, rs, d4, d5, d6, d7, bl, POSITIVE);
^~~~~~~~
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\phili\OneDrive\Documents\Arduino\libraries\LiquidCrystal_I2C-1.1.2
Not used: C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal
Not used: C:\Users\phili\OneDrive\Documents\Arduino\libraries\NewliquidCrystal
exit status 1
'POSITIVE' was not declared in this scope

Thanks


   
ReplyQuote
(@richardbr)
Member
Joined: 3 years ago
Posts: 7
 

Maybe it's not the response you want but since I couldn't get the LiquidCystal display to work, I thought about using an OLED display.  So on the workshop I set up the OLED tenp humid exercise.  And that worked.  Then I added the UV sensor to that. So I have a temp, humid, and UVindex sensor.  Just by patching in code from the UV meter sketch.  

 

I don't know enough about libraries to solve library problems.  


   
ReplyQuote
MadMisha
(@madmisha)
Member
Joined: 4 years ago
Posts: 340
 
Posted by: @arduinophil

Use NewLiquidCrystal Library

Posted by: @arduinophil

Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\phili\OneDrive\Documents\Arduino\libraries\LiquidCrystal_I2C-1.1.2
Not used: C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal
Not used: C:\Users\phili\OneDrive\Documents\Arduino\libraries\NewliquidCrystal

It looks like you have the NewLiquidCrystal library installed but that is not the one that your IDE is pulling. Unfortunately, I do not have that library so I cannot test it out. I also don't know what POSITIVE is. As far as I know, that is not a C/C++ command. Try just deleting that and the comma before it and see if it compiles. The library manager should have one from Adafruit available if you search LCD and it should work exactly the same but without that POSITIVE there. 

 

Edit: Actually, I realized it was the backlight and that library does not support that. And I believe the POSITIVE is the backlight polarity, maybe... 

 

Here is one that I think will work but things are passed in a different order enjoyneering LiquidCrystal_I2C

It was the closest I could fine. Let me know if that works.

 

LiquidCrystal_I2C lcd(i2c_addr, rs, rw, en, bl, d4, d5, d6, d7, POSITIVE);

 


   
ReplyQuote