<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope]]></title><description><![CDATA[<p dir="auto">I have researched this error on the forum but I am not clear how to resolve. From other answers Positive is supposed to be declared. I have the mysensors library installed (2.3.1) and using Arduino IDE 1.8.5</p>
<pre><code>"/home/raymond/Downloads/arduino-1.8.5/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-I/home/raymond/Downloads/arduino-1.8.5/hardware/arduino/avr/cores/arduino" "-I/home/raymond/Downloads/arduino-1.8.5/hardware/arduino/avr/variants/eightanaloginputs" "-I/home/raymond/Downloads/arduino-1.8.5/hardware/arduino/avr/libraries/Wire/src" "-I/home/raymond/Arduino/libraries/Time-master" "-I/home/raymond/Downloads/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src" "-I/home/raymond/Arduino/libraries/MySensors" "-I/home/raymond/Arduino/libraries/LiquidCrystal/src" "-I/home/raymond/Arduino/libraries/LiquidCrystal_I2C-1.1.2" "/tmp/arduino_build_167561/sketch/MySensors_Sprinkler.ino.cpp" -o "/tmp/arduino_build_167561/sketch/MySensors_Sprinkler.ino.cpp.o"
MySensors_Sprinkler:174: error: 'POSITIVE' was not declared in this scope
 LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address to 0x27
                                                     ^
Using library Wire at version 1.0 in folder: /home/raymond/Downloads/arduino-1.8.5/hardware/arduino/avr/libraries/Wire 
Using library Time-master at version 1.5 in folder: /home/raymond/Arduino/libraries/Time-master 
Using library SPI at version 1.0 in folder: /home/raymond/Downloads/arduino-1.8.5/hardware/arduino/avr/libraries/SPI 
Using library MySensors at version 2.3.1 in folder: /home/raymond/Arduino/libraries/MySensors 
Using library LiquidCrystal at version 1.0.7 in folder: /home/raymond/Arduino/libraries/LiquidCrystal 
Using library LiquidCrystal_I2C-1.1.2 at version 1.1.2 in folder: /home/raymond/Arduino/libraries/LiquidCrystal_I2C-1.1.2 
exit status 1
'POSITIVE' was not declared in this scope```</code></pre>
]]></description><link>https://forum.mysensors.org/topic/10473/mysensors_sprinkler-174-error-positive-was-not-declared-in-this-scope</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 17:57:35 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/10473.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Jun 2019 14:41:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope on Mon, 17 Jun 2019 14:36:11 GMT]]></title><description><![CDATA[<p dir="auto">Yes, that worked... I downloaded master.zip and replaced the current Liquid Crystal folder with the new one. Restarted IDE and was able to compile and upload the sketch. Thank you!</p>
]]></description><link>https://forum.mysensors.org/post/99947</link><guid isPermaLink="true">https://forum.mysensors.org/post/99947</guid><dc:creator><![CDATA[mrhutchinsonmn]]></dc:creator><pubDate>Mon, 17 Jun 2019 14:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope on Sun, 16 Jun 2019 17:12:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrhutchinsonmn" aria-label="Profile: mrhutchinsonmn">@<bdi>mrhutchinsonmn</bdi></a> , we just recently had the exact same problem.  It all about versions of files.  I don't know if the MySensors library version is critical.  But the external examples libraries were the key for us.  In the Demonstration section of the project it says:</p>
<p dir="auto">NOTE: The code referenced in this video is out of date. Please use the code below with the current MySensors library and the libraries included in the <a href="https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip" rel="nofollow ugc">MySensors external examples</a>. Please install the libraries and restart the Arduino IDE before trying to compile.</p>
<p dir="auto">In that Examples library referenced, you need the version of the Liquid Crystal library.  That version defines POSITIVE and hopefully will get you to compile successfully.</p>
]]></description><link>https://forum.mysensors.org/post/99931</link><guid isPermaLink="true">https://forum.mysensors.org/post/99931</guid><dc:creator><![CDATA[rjspindler]]></dc:creator><pubDate>Sun, 16 Jun 2019 17:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope on Sat, 15 Jun 2019 20:32:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrhutchinsonmn" aria-label="Profile: mrhutchinsonmn">@<bdi>mrhutchinsonmn</bdi></a> thanks for explaining.</p>
<p dir="auto">You'll need the exact versions available in <a href="https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip" rel="nofollow ugc">https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip</a></p>
<p dir="auto">Unfortunately, the install process is a bit more complex than the normal MySensors library install. You'll need to unzip the file and move the libraries (the individual libraries, not the libraries folder itself) into the Arduino IDE's library folder. You might have to uninstall existing versions of the libraries first.</p>
]]></description><link>https://forum.mysensors.org/post/99896</link><guid isPermaLink="true">https://forum.mysensors.org/post/99896</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sat, 15 Jun 2019 20:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope on Sat, 15 Jun 2019 17:02:45 GMT]]></title><description><![CDATA[<p dir="auto">My apologies... I should have mentioned that I am using your sketch from the  Irrigation controller project. Nothing has been changed (just copy and paste) (<a href="https://www.mysensors.org/build/irrigation" rel="nofollow ugc">https://www.mysensors.org/build/irrigation</a>). Renamed it for my garden sprinkler project. I am not near my Desktop PC till Monday, so I am not sure where I found the library. Is there a specific library version I should use? Where will I find it? From reviewing other questions on this subject, it seemed you felt everything needed would be found in the mysensors library. Maybe I misunderstood.</p>
]]></description><link>https://forum.mysensors.org/post/99890</link><guid isPermaLink="true">https://forum.mysensors.org/post/99890</guid><dc:creator><![CDATA[mrhutchinsonmn]]></dc:creator><pubDate>Sat, 15 Jun 2019 17:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope on Fri, 14 Jun 2019 19:59:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrhutchinsonmn" aria-label="Profile: mrhutchinsonmn">@<bdi>mrhutchinsonmn</bdi></a> could you tell us where you found this MySensors_Sprinkler? It is not part of the MySensors library, nor part of the MySensors external examples so it is a bit hard to know what code you are using.</p>
]]></description><link>https://forum.mysensors.org/post/99881</link><guid isPermaLink="true">https://forum.mysensors.org/post/99881</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Fri, 14 Jun 2019 19:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to MySensors_Sprinkler:174: error: &#x27;POSITIVE&#x27; was not declared in this scope on Fri, 14 Jun 2019 19:39:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrhutchinsonmn" aria-label="Profile: mrhutchinsonmn">@<bdi>mrhutchinsonmn</bdi></a> I think you need to post the full code, and LCD library version, unless it is secret (but then nobody can help you)..</p>
]]></description><link>https://forum.mysensors.org/post/99880</link><guid isPermaLink="true">https://forum.mysensors.org/post/99880</guid><dc:creator><![CDATA[skywatch]]></dc:creator><pubDate>Fri, 14 Jun 2019 19:39:51 GMT</pubDate></item></channel></rss>