VS Arduino
Visual Micro >> Project Guidance >> Library/upload problem
https://www.visualmicro.com/forums/YaBB.pl?num=1474316331

Message started by Vertunis on Sep 19th, 2016 at 8:18pm

Title: Library/upload problem
Post by Vertunis on Sep 19th, 2016 at 8:18pm
Hi there,

I just got a problem. I want to programm my arduino uno in atmel studio with the visualmicro plugin. My intense is to use a LCD with an I2C Serial Interface Module. There is an existing library available for the use of this module which I implemented in atmel studio.
https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads

But when I´m trying to upload the code on my arduino uno, it´s is not working correctly. The LCD is showing just a short part of the text then its just cleaning the display.

The code is available on the following link http://blog.mklec.com/how-to-use-iici2c-serial-interface-module-for-1602-lcd-display/

The code is

Code (c++):
/**
* I2C/IIC LCD Serial Adapter Module Example
* Tutorial by http://mklec.com
*
* Instructions at http://blog.mklec.com/how-to-use-iici2c-serial-interface-module-for-1602-lcd-display
*
* This uses the Liquid Crystal library from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads GNU General Public License, version 3 (GPL-3.0)
* Pin Connections:
*      SCL = A5
*      SDA = A4
*      VCC = 5V
*      GND = GND
*/
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C      lcd(0x27,2,1,0,4,5,6,7); // 0x27 is the I2C bus address for an unmodified module

void setup()
{
    lcd.setBacklightPin(3,POSITIVE);
    lcd.setBacklight(HIGH); // NOTE: You can turn the backlight off by setting it to LOW instead of HIGH
    lcd.begin(16, 2);
    lcd.clear();
}

void loop()
{
    lcd.setCursor(0,0);
    lcd.print("http://mklec.com");
    lcd.setCursor(0,1);
    lcd.print("I2C Module Demo");
    delay(1000);
}


I don´t know where the problem is. Does someone has an advice on this problem?

Sincere Vertunis  :)

Title: Re: Library/upload problem
Post by Visual Micro on Sep 19th, 2016 at 11:21pm
Hi,

Do you get the same problem in the arduino ide?

Thanks

Title: Re: Library/upload problem
Post by Vertunis on Sep 20th, 2016 at 8:19am
No in the Arduino IDE it is working well. But I had to replace the arduino LCD-Library with the provided LCD-library for the l2c module. Could this cause the problem ?

Title: Re: Library/upload problem
Post by Visual Micro on Sep 20th, 2016 at 12:34pm
Please switch on "vMicro>Compiler>show build properties" and also the "Verbose" option.

Probably some confusion resolving the library. Try removing the LCD library then restarting the ide

Then click Build>Clean then Build and post the output as .txt file or email to info[at]visualmicro.com with link to this post.

Title: Re: Library/upload problem
Post by Vertunis on Sep 21st, 2016 at 5:00pm
Thx for the advise. But I think I found the problem. The "vMicro->Debugger>Automatic Debug" was enabled. I just disabled this option then it worked fine. I also think was just in the debug mode all the time  ::)

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.