Pages: 1 2 [3]   Go Down
Author Topic: error: 'POSITIVE' was not declared in this scope  (Read 1380 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Correct.  On all three platforms I have tried this.
Logged

Dallas, TX USA
Offline Offline
Edison Member
*
Karma: 47
Posts: 2347
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

paupline,
It is exactly as I suspected. You have not properly installed fm's library and are using the wrong library.
As I said before the only way to get that error is to be using the wrong library.
You can see in the verbose output from looking at the -I include paths,
that the sketch is using the LiquidCrystal_I2C library vs fm's library.
You cannot have multiple libraries that use a header file with the same name
because there is no way to guarantee which one is used.
In this case, the IDE has selected using the LiquidCrystal_I2C library vs fm's library.

In this post:
http://forum.arduino.cc/index.php?topic=214356.msg1569936#msg1569936
I asked this:
Quote
Did you make sure to remove any other LIquidCrystal_I2C library that was previously installed?

Which looks like was not done.

Go remove the other library so you can use fm's library.

--- bill
« Last Edit: January 31, 2014, 01:58:22 pm by bperrybap » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dang,  I just noticed there are 2 locations for the libraries to be stored.  I remove them both and it is now working.

BIG Thanks to:

raschemmel

and

bperrybap

Couldnt have done it without guys.

Thank you very much and appreciate your patience.
Logged

Offline Offline
Edison Member
*
Karma: 31
Posts: 2466
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

GREAT !
FYI,
Since each library creates it's own folder name, you can have several folders each with a different library,
and since they are all under the subdirectory "Libraries", they will conflict.  
Glad to hear it's working.  
Just a reminder. Next time you post code use the CODE ["#"] button. But if you have any text that is lengthy,
either a very long quote, or some exert from a datasheet, you can also use the ["#"] button because it is
functionally the [SCROLL WINDOW] button.
Also, I have a separate HD where I have MAIN LIBRARY TEMP FOLDER , in multiple places so for example
I have one in the I2C folder that has two different I2C LCD libraries because I have two displays that use
different libraries and I can't figure out how to get them both working with the same library. I keep a
copy of each in the temp folder and when I need to change I delete the old one and paste the new one
in from the other HD.  I noticed there is more than one DHT11 library as well so I'll probably create one
for those libraries too.
« Last Edit: January 31, 2014, 03:34:08 pm by raschemmel » Logged

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Dallas, TX USA
Offline Offline
Edison Member
*
Karma: 47
Posts: 2347
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have one in the I2C folder that has two different I2C LCD libraries because I have two displays that use
different libraries and I can't figure out how to get them both working with the same library.
There should be no need for this. fm's library can run them all.
If you happen to have native i2c display, or a mcp23008 based backpack, I have early
code that I can give you to get you up and going with fm's library.

PM me or start a new thread, and I can walk you through getting them both to
work with fm's library.

--- bill
Logged

Offline Offline
Edison Member
*
Karma: 31
Posts: 2466
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

THANKS !
I'll do that.
Logged

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Offline Offline
Edison Member
*
Karma: 31
Posts: 2466
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now that the smoke is cleared, why are you using the DHT11 sensor ?
What's your project ?
Logged

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Its more for my kids to play with.  They wanted a project so I wanted to provide them with something fun.  This will give them some hands on experience with programming and wiring.

I just wanted to make sure everything worked so when they ask me whats wrong I will be able to help them.

Its a small project that displays the Temperature, Humidity and Dew Point of the environment.  Nothing too exciting but fun for them.

Thanks again for your help.

Logged

Offline Offline
Edison Member
*
Karma: 31
Posts: 2466
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well heck, why didn't you say so. You could have just asked them to fix it.  ! smiley-mr-green
Logged

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Dallas, TX USA
Offline Offline
Edison Member
*
Karma: 47
Posts: 2347
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Its a small project that displays the Temperature, Humidity and Dew Point of the environment.  Nothing too exciting but fun for them.
Cool!
They can breath on the sensor(s) and watch the information change.
That will be fun.
A game of who has the "hottest" and "wettest" breath....
--- bill
Logged

Pages: 1 2 [3]   Go Up
Jump to: