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 Problem with TFT library (Read 3936 times)
Jürgen Hofmann
Newbies
*
Offline


Posts: 9
Joined: Jun 7th, 2013
Problem with TFT library
Jun 10th, 2013 at 3:16pm
Print Post  
Hi,

I'm having a weired problem with the TFT libary.

The following sketch works in the Arduino IDE, but fails on VisualStudio and AtmelStudio. 

I get the following error (and have no idea why the ArduinoRobot.cpp gets compiled):

Code
Select All
ArduinoRobot.cpp : : In constructor 'RobotControl::RobotControl()':
ArduinoRobot.cpp : 'LCD_CS' was not declared in this scope
ArduinoRobot.cpp : 'DC_LCD' was not declared in this scope
ArduinoRobot.cpp : 'RST_LCD' was not declared in this scope
ArduinoRobot.cpp : : In member function 'void RobotControl::begin()':
ArduinoRobot.cpp : 'MUXA' was not declared in this scope
ArduinoRobot.cpp : 'MUXB' was not declared in this scope
ArduinoRobot.cpp : 'MUXC' was not declared in this scope
ArduinoRobot.cpp : 'MUXD' was not declared in this scope
ArduinoRobot.cpp : 'MUX_IN' was not declared in this scope
ArduinoRobot.cpp : 'BUZZ' was not declared in this scope
Error compiling
 



Code
Select All
#include <SPI.h>
#include <TFT.h>

#define CS	10
#define DC	 9
#define RESET	 8

TFT myScreen = TFT(CS, DC, RESET);

void setup()
{
  myScreen.begin(); 
  myScreen.background(0,0,0); // clear the screen
}

void loop()
{
    myScreen.stroke(255,255,255);
    myScreen.text("just a test",0,10);
    delay(1000);
}
 

  
Back to top
 
IP Logged
 
Jürgen Hofmann
Newbies
*
Offline


Posts: 9
Joined: Jun 7th, 2013
Re: Problem with TFT library
Reply #1 - Jun 10th, 2013 at 3:18pm
Print Post  
Sorry, just read the stuff about the robot_ libraries in 1.0.5 that need to be deleted ...

Can fix it myself, thanks!

Jürgen

admin: use Arduino 1.0.4 or 1.5.2 fro now
« Last Edit: Jun 10th, 2013 at 3:22pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint