06-02-2012 11:19 AM
Hi there,
This is already (but partly) posted under another topic but the scope is slightly different, so I'm posting it again...
I have connected a 2.8" TFT Color LCD,touch screen shield V1.2 for Arduino 168/328 to the Arduino Uno Microcontroller Board ATMEGA328, USB. The display is controlled using the Arduino IDE and (a truncated version of) the TFT_lib that is provided by Nuelectronics. Here is my very first very simple code:
#include <TFT_Graphics.h>
Graphics tft;
void setup()
{
tft.initialize(LCD_HORIZONTAL);
tft.ClearScreen(WHITE);
//tft.FastSolidRect(85, 10, 240, 231, BLACK);
//tft.DrawCircle(160,120, 100, BLUE, 1);
}
void loop()
{
tft.ClearScreen(BLACK);
tft.FastSolidRect(85, 10, 240, 231, BLUE);
delay(1000);
tft.ClearScreen(BLUE);
tft.FastSolidRect(85, 10, 240, 231, BLACK);
delay(1000);
}
The following images show what the loop is doing:
I tried other libraries such as Henning Karlsen's UTFT library and variety of alternatives but nothing else, aside the TFT_lib, worked... Any idea how to get the UTFT (or any other) library running with my hardware?
In the next step I would (somehow) like to merge this code with LIFA and send commands such as ClearScreen(BLUE) to the board for controlling the LCD using LabView. Is this possible? Any kind of helpful information would be just great!
Thank you very much!
06-06-2012 08:54 AM
thats a good question i will love to have something similar for driving LED STRIP
06-06-2012 05:05 PM
I tried to reply to your orignal post but I am getting errors... try this