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
Normal Topic Library/upload problem (Read 5513 times)
Vertunis
Newbies
*
Offline


Posts: 3
Joined: Sep 19th, 2016
Library/upload problem
Sep 19th, 2016 at 8:18pm
Print Post  
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++)
Select All
/**
 * 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
« Last Edit: Sep 19th, 2016 at 8:24pm by Vertunis »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library/upload problem
Reply #1 - Sep 19th, 2016 at 11:21pm
Print Post  
Hi,

Do you get the same problem in the arduino ide?

Thanks
  
Back to top
WWW  
IP Logged
 
Vertunis
Newbies
*
Offline


Posts: 3
Joined: Sep 19th, 2016
Re: Library/upload problem
Reply #2 - Sep 20th, 2016 at 8:19am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library/upload problem
Reply #3 - Sep 20th, 2016 at 12:34pm
Print Post  
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
Joined: Sep 19th, 2016
Re: Library/upload problem
Reply #4 - Sep 21st, 2016 at 5:00pm
Print Post  
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 TopicPrint