Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) vM - Add Library (Read 1614 times)
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
vM - Add Library
Mar 30th, 2020 at 12:10pm
Print Post  
In "Micro Explorer - Manage Libraries" I can see a library "LiquidCrystal_I2C by Frank etc" but I cannot add this library from the "vMicro - Add library" with "Create shared project when including libraries" set and therefore I cant see the library in "Solution Explorer".
Is there a way to fix this?


If I just add:
#include <LiquidCrystal_I2C.h>    //johnrickman/LiquidCrystal_I2C
I can use the library and intellisense works on it.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: vM - Add Library
Reply #1 - Mar 30th, 2020 at 1:36pm
Print Post  
Can you confirm the library has been installed, and the Sketchbook location is set correctly (if not default Documents\Arduino)? (hover over the library in vMicro Explorer > Manage Libraries to see installation status at the bottom)

(If installing with Visual Micro open (manually or from the vMicro Explorer),  ensure you click the "Rescan" button to detect the new libraries.)

This library will show under the "User Installed" Library listing, for AVR Architectures by default, and adding with or without the Shared Project include options should work on selection from the list as expected.


  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: vM - Add Library
Reply #2 - Mar 30th, 2020 at 2:04pm
Print Post  
E:\James\Documents\Arduino\libraries\LiquidCrystal_I2C

If I hover over the library (its greyed out) in vMicro Explorer > Manage Libraries I dont see installation status or anything at the bottom if I click it I am asked if I want to un-install it which if I do and then move over the library again I get:

LiquidCrystal I2C by Frank de Brabander Version 1.1.2
A library for I2C LCD displays. The library allows to control I2C displays with functions extremely similar to LiquidCrystal library. THIS LIBRARY MIGHT NOT BE COMPATIBLE WITH EXISTING SKETCHES. 

If I click downloaded I go to :
.zip\LiquidCrystal_I2C-1.1.2

Then if click install its grey again.

If  look in vMicro Explorer - Installed - Explore all platforms - Arduino - avr - Libraries - All 
I can see it.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: vM - Add Library
Reply #3 - Mar 30th, 2020 at 3:06pm
Print Post  
Thanks, its definitely installed then... 

If you double click it in that list with the INO open, it will add it to the sketch for you (and follow the clone options if set).

Can you confirm it is an AVR board in use, and it is still not in the Add Libraries > User Installed Libraries list? (screenshot may be easiest)
  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: vM - Add Library
Reply #4 - Mar 30th, 2020 at 3:27pm
Print Post  
I am using STM32duino with a BluePill.

OK by "double click it in that list with the INO open, it will add it to the sketch for you" worked and I can now see the library in  "Solution Explorer".

It also adds the library in project folder quidCrystal_I2C

I have Clone for libraries set.
Not too sure what those various clones do.

Still does not appear in any vMicro - Add library list
« Last Edit: Mar 30th, 2020 at 3:29pm by Trek19 »  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: vM - Add Library
Reply #5 - Mar 30th, 2020 at 6:14pm
Print Post  
I think I have solved it.
In : E:\James\Documents\Arduino\libraries\LiquidCrystal_I2C\library.properties
Under architectures I added stm32, and now I can see the library in vMicro- Libraries.

name=LiquidCrystal I2C
version=1.1.2
author=Frank de Brabander
maintainer=Marco Schwartz <marcolivier.schwartz@gmail.com>
sentence=A library for I2C LCD displays.
paragraph= The library allows to control I2C displays with functions extremely similar to LiquidCrystal library. THIS LIBRARY MIGHT NOT BE COMPATIBLE WITH EXISTING SKETCHES.
category=Display
url=https://github.com/marcoschwartz/LiquidCrystal_I2C
architectures=avr,stm32
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: vM - Add Library
Reply #6 - Mar 30th, 2020 at 6:37pm
Print Post  
Apologies for the delayed reply, and you are right this is an AVR library, which is why it doesn't show in the list.

The route of using it via vMicro explorer allows more flexibility.
  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: vM - Add Library
Reply #7 - Mar 31st, 2020 at 8:47am
Print Post  
OK Simon, thanks for guiding me in the right direction, the library actually works with STM32duino.
I am still not clear on the 3 clone options in vMicro Add Library , is there any further information on what they do?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vM - Add Library
Reply #8 - Mar 31st, 2020 at 12:25pm
Print Post  
I suggest you use each of the clone options and then inspect the paths of the resulting librray sources. That will explain what they do.

tip: Always remeber to ensure that shared projects in the solution appear under the references node of the real Arduino project.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint