Go Down

Topic: AWind: GUI library for Arduino - TFT Displays (Read 14345 times) previous topic - next topic

PrSaban

Hi Andrei!

I am using Awind for my TFT LCD ( SSD1963 800x480) . When i complier example "Tabcontrol" , it is ok. But there is a problem, the position where i touch is incorrect with icon . I touch "Tab3" , the screen show up Tab1 window :(
Can you help me to solve this error!


Thanks and again, great job with this library AndreiDegtiarev .

AndreiDegtiarev

Hi PrSaban!

I have answered your question in the another topic in display forum

Regards

Andrei
AWind: GUI library for Arduino - TFT Displays
https://github.com/AndreiDegtiarev/AWind

pbecchi

I am looking for a GUI library that can be ported to ESP8266,
I have donloaded Awind , a perfect tool for my needs , but I am having problems in the porting:

ESP8266 has only few GPIO available and therefore work only with SPI Tft Touch display.

I have found UTFT and UTOUCH libraries working on ESP8266

Nevertheless compilation on ESP8266 give a uge number of errors

Mainly errors are related to PROGMEM costants that are widely used in the code

Any suggestion?

AndreiDegtiarev

The idea to use esp8266 is very interesting. At least this board has enough memory.
I have such board, but I didn't tried it yet.

Can you please give me links to the UTFT und UTOUCH libraries that you use?
At the moment I use arduino 1.6.6 version, which version did you try?

Andrei
AWind: GUI library for Arduino - TFT Displays
https://github.com/AndreiDegtiarev/AWind

pbecchi

Hi Andrei

thanks for your replay!
I did progress a little with charts.pde example :
I had to delete most of PROGMEM but finally I got it compiled :
it start , it show the window with the y scale, then it clear and draw a sin wave, then it show the scale again and when start drawing the sinus again it reset with a Softare Reset error.
Since there is no documentations it is difficult to undertand what the program is doing and to trace the point of the reset!

I will be very glad if you can compile on ESP8266 your code and try the examples: I am not a skilled programmer and I really need your help to go throught the code for debug

Regarding libraries:
for UTFT : github.com/gnulabis/UTFT-ESP8266
for UTOUCH : I made a dummy UTOUCH.h that call the only touch library available https://github.com/spapadim/XPT2046
this is the utouch code:
[code//
//
//
#include <Arduino.h>
#include <XPT2046.h>
#include "UTOUCH.h"

UTouch::UTouch(byte tclk, byte tcs, byte tdin, byte dout, byte irq)
 {
 XPT2046 touch(/*cs=*/ tcs, /*irq=*/ irq);
 }

 void UTouch::InitTouch(byte orientation ) {
 touch->begin(240,320);
 touch->setRotation(touch->ROT270);
 touch->setCalibration(176, 256, 1739, 1791);//banggood3.2"
 if(orientation==1)touch->setRotation(touch->ROT0);
 else touch->setRotation(touch->ROT270);
 

 }
 void UTouch::read() {
 uint16_t x, y;
 touch->getPosition(x,y);
 TP_X = x;
 TP_Y = y;
 }
 bool UTouch::dataAvailable() { return touch->isTouching(); }
 int16_t UTouch::getX() { return UTouch::TP_X; }
 int16_t UTouch::getY() { return UTouch::TP_Y; }
 void UTouch::setPrecision(byte precision) {}


/code]

Has you can see I am very poor programmer! :(

Paolo

elpapais

Hi Andrei.
Nice work!!!
I find your library verry nice!
I have a question:
I can't find a image object.
Is possible to load a image into a box?
Regards.
www.infoportal.it support at infoportal.it

elpapais

Hi Andrei!

Please can you give me a little help?

1) i can't find how to allign to right the TextBoxNumbers
2) i need to have into the tab controll one image. is thath possible? and how?

regards
www.infoportal.it support at infoportal.it

AndreiDegtiarev

Hi Elpapais,

thank you for the kind words about AWind library!

Unfortunately, the features you are asking are not implemented yet, although it isn't that much work As workaround for the text alignment you can use function SetMargins.
If you know how to draw pictures with the help of UTFT library than you can override function void OnDraw(DC *dc) in the child window of tab control.

Regards,

Andrei
AWind: GUI library for Arduino - TFT Displays
https://github.com/AndreiDegtiarev/AWind

elpapais

Hi Andrei.
Tnx for answer.

margins...
but margins are from top and lef... and the numbers is variant...
you mean one routine can read if units or thens or hundert and so on an make correct lef space?
www.infoportal.it support at infoportal.it

AndreiDegtiarev

Hi Elpapais,

the text horizontal alignment functionality is implemented (see VacuumPump example and SetHorizontalAlignment function) The changes are not released yet, so that you need clone actual AWind, ASensor and AFrame repositories.

Regards,

Andrei
AWind: GUI library for Arduino - TFT Displays
https://github.com/AndreiDegtiarev/AWind

AndreiDegtiarev

... and sorry pbecchi. I have made couple of attempts, but compilation for ESP8266 is more difficult as I expected. I keep trying
AWind: GUI library for Arduino - TFT Displays
https://github.com/AndreiDegtiarev/AWind

Henrigp

Hello,
very interesting libraries and examples but I can't run it on Arduino Mega 2560  :(
Is it only designed to DUE ?
Thank's

Henri

AndreiDegtiarev

Hi Henri,

It should work on mega too.
Are the examples from UTFT library running ok on your configuration?
What kind of errors do you receive?

Regards,

Andrei
AWind: GUI library for Arduino - TFT Displays
https://github.com/AndreiDegtiarev/AWind

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy