Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Library/upload problem (Read 3411 times)
Vertunis
Newbies
*
Offline



Posts: 3
Library/upload problem
Sep 19th, 2016 at 9: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-dis...

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  Smiley
Back to top
« Last Edit: Sep 19th, 2016 at 9:24pm by Vertunis »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Library/upload problem
Reply #1 - Sep 20th, 2016 at 12:21am
 
Hi,

Do you get the same problem in the arduino ide?

Thanks
Back to top
 
WWW  
IP Logged
 
Vertunis
Newbies
*
Offline



Posts: 3
Re: Library/upload problem
Reply #2 - Sep 20th, 2016 at 9: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 ?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Library/upload problem
Reply #3 - Sep 20th, 2016 at 1: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.
Back to top
 
WWW  
IP Logged
 
Vertunis
Newbies
*
Offline



Posts: 3
Re: Library/upload problem
Reply #4 - Sep 21st, 2016 at 6: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  Roll Eyes
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print