Having trouble to upload my sketch created with previous Mac OS (currently Mac Sierra 10.12.6) I decided using Web Editor.
My sketch works currently with 0S 10.10 and IDE 1.6.7 and I don't meet this issue (other, but it's not the topic) with Sierra and latest release of IDE 1.8.3
I've imported missing libraries (DHT22 and NewLiquidCrystal) into creator but still have following error during verifying:
arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/362539856 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/116639214/pinned -libraries /tmp/116639214/custom -fqbn arduino:avr:nano:cpu=atmega328 -build-cache /tmp -verbose=false /tmp/116639214/_VMC_Intelligente_v1-3 Multiple libraries were found for "LiquidCrystal_I2C.h" Used: /home/admin/builder/arduino-builder/latest/LiquidCrystal I2C-1.1.2 Not used: /tmp/116639214/custom/NewliquidCrystal Not used: /home/admin/builder/arduino-builder/latest/jm_LiquidCrystal_I2C-1.0.0 /tmp/116639214/_VMC_Intelligente_v1-3/_VMC_Intelligente_v1-3.ino:89:53: error: 'POSITIVE' was not declared in this scope LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address, using I2C SCan if necessary ^ exit status 1
Using lastest vers of NewLiquidCrystal (includind LiquidCrystal_I2C.h) I'm not able understanding bolded lines here above. And why it works with IDE and not with web Creator.
Would you mind sharing the sketch you are working on?
You can do so by pressing the SHARE button in the header and coping the sketch URL. If it has sensitive info you can send it to me via PM too.
Could you tell us if you are using an example with PDE or INO extensions ?
If it is a PDE then re-save it as that will convert it to an INO extension and it might get you a little further.
Have put together an I2C display (16x02) to play with here so if you could share the link to your web sketch I can take a look and see what happens here.
EDIT Have you tried an I2C scanner to see if that can see your device on the buss.
Then, I told you this sketch works on OS 10.10 but it doesn't with Sierra (DHT22 lib ?). I can upload (no error at all) it to Nano but Nano reboot three or for times then DHTs return wrong informations. But this point is a different matter than original object of this topic.
I know i should change dht lib... but it works depending on OS, so code is quite good.
Seeing my sketch, if you get an idea about trouble mentionned before especially with web creator, let me know.
ballscrewbob:
Could you tell us if you are using an example with PDE or INO extensions ?
If it is a PDE then re-save it as that will convert it to an INO extension and it might get you a little further.
Have put together an I2C display (16x02) to play with here so if you could share the link to your web sketch I can take a look and see what happens here.
EDIT Have you tried an I2C scanner to see if that can see your device on the buss.
Hi,
no matter with I2C adress. I've done it at the begining. In this case there is no trouble for compliation but just for operating.
I probably found something. There are two ways for instanciation in LCD_I2C lib (.h):
// Created by Francisco Malpartida on 20/08/11. // Copyright 2011 - Under creative commons license 3.0: // Attribution-ShareAlike CC BY-SA (...) public:
and kind of the same next in this lib
So, how CREATE (or IDE but it works) made the difference with or without backlight control ?
That is probably the source of trouble in CREATE.
Note : Compilation (verifying) WORKS perfectly with IDE (1.6.8 to 1.8.3) choosing Nano board. Trouble appears ONLY with Create
All LCD_I2C lib are contains in one folder "NewLiquidCrystal" on my computer, it could make the difference, don't know.
So... I'm lost.
Thanks.
Please use code tags to post error and sketches ( </> )
As you can see the forum does strange things when you don't use those tags.
Did you upload your library to CREATE ?
CREATE has a very good selection of libs but NOT every one that has ever been made.
Also would still like the actual link to where you acquired it ???
The date suggest it may be a rather old one and it might not have been maintained or CREATE compliant.
Yes I did. I uploaded it to my Create.
Your probably right saying it's an old one. As written on error code, CREATE use 1.1.2 instead of mine (1.?.?). Meaning CREATE doesn't use imported library.
I've seen LiquidCrystal_I2C has a new version released 6month ago (on Github). But this one is not include in a package as the previous one named NewLiquidCrystal.
LiquidCrystal_I2C.h (or .cpp) is dated on Jun2015.
I should and could "clean" folders of libraries i've got, but I'm "affraid" upgrading because it works with my IDE.
When I decided to use CREATE it was due to trouble I had on another sketch and to fix trouble met with OS Sierra (I think) on this sketch, but finally I got new issues... A little bit boring isn't it ?
You're right. I wrote that and i should move to DHT lib developped by Ada.
But that lib is easier to implement in a sktech. Reason why I use it since quite the begining.
If I change (it's planned, see text in french - ok, I know... - in my sketch), I must re-write my sketch. Iknow it's not a big job, time just missing.
However trouble seems not coming from DHT22 lib but from LiquidCrystal_I2C used with Create (as written many time before)
I also confirm the issue with NewLiquidCristal_1.3.4. I unzipped the file and then zipped it again with the same folder structure and file name as the original and then I can import it.
I know this same issue was raised previously but I don't know whether we found any more information at that time. @ballscewbob, do you remember that?
And boy what an annoying library to have to test imports with over and over again. What was the author thinking putting a 17 MB .tmp file in an Arduino library?