Notifications
Clear all

DroneBot I2C Temp Humidity Sensor  

  RSS

robcairns0
(@robcairns0)
Member Moderator
Joined: 1 year ago
Posts: 7
2020-02-11 5:26 am  

Hi All,

I'm trying to get the DBW I2C temp and humidity sensor working and keep getting a 'POSITIVE' was not declared in this scope: message from line 32 of the original sketch. I'm sure it has something to do with the defining of the LCD pinout but I have no idea where to look for the correct information. I'm sure the display is a 1602 but not sure of the I2C adapter, it was a bundle from Elegoo. All of the Adafruit examples work but I can't get Bill's sketches to work. Any ideas? Thanks


Quote
Pugwash
(@pugwash)
Prominent Member
Joined: 1 year ago
Posts: 970
2020-02-11 8:51 am  

Yeah, I have an idea for you!!

Provide the sketch you are trying to compile to the forum, then someone else can try to duplicate the compiler error. As the sketch won't compile, then the extra hardware seems to me to be pretty irrelevant.

But my guess is that after copying the code from DBW, you have unknowingly deleted a curly brace or a semicolon. I have encountered similar compiling problems and most have turned out to be exactly that. Check the punctuation first!


ReplyQuote
robcairns0
(@robcairns0)
Member Moderator
Joined: 1 year ago
Posts: 7
2020-02-11 1:08 pm  

Hi Pugwash and all,

Works perfectly after I went back and checked that I updated the libraries ... oops.

Thanks


ReplyQuote