Notifications
Clear all

DroneBot I2C Temp Humidity Sensor

3 Posts
2 Users
0 Likes
1,276 Views
(@robcairns0)
Member
Joined: 5 years ago
Posts: 3
Topic starter  

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)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

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)
Member
Joined: 5 years ago
Posts: 3
Topic starter  

Hi Pugwash and all,

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

Thanks


   
ReplyQuote