LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I implement and use a 3rd party library with LIFA?

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:

Example 1.jpg

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!

0 Kudos
Message 1 of 3
(3,355 Views)

thats a good question i will love to have something similar for driving LED STRIP

CLAD, CTD
0 Kudos
Message 2 of 3
(2,611 Views)

I tried to reply to your orignal post but I am getting errors... try this

https://decibel.ni.com/content/message/23934#23934

0 Kudos
Message 3 of 3
(2,611 Views)