Go Down

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


I missed the fact that distribution of AWind
also includes libraries ABuild AFrame ASensor
Got it!


Hi asokolsky,

thank you for your interest in AWind library, and for your suggestions.
The information about Utouch library was new for me and in the next release I will switch to URTouch. 
Now there are my questions to your questions :-) : it isn't that difficult to make AWing "Utouch free", it is necessary just to make proxy class for this library, like DC class for UTFT. Another solution would be just use AWind as it is and "don't touch the screen". What is the reason for you to compile AWind without UTouch - memory issue?
sans-serif font - what you mean free, as part of UTFT library?

AWind: GUI library for Arduino - TFT Displays


> What is the reason for you to compile AWind without UTouch
My screen does not support touch.  So I was trying to avoid another dependency.

> sans-serif font - what you mean free, as part of UTFT library?
UTFT author lists many contributed fonts:
IMO arial_bold or hallfetica_normal look much better as a GUI font than standard BigFont or SmallFont.

For now my attempts to use AWind failed.  I use teensy 3.2 and compilation of AWind fails - looks like some of AWind header defines BYTE which is in conflict with one of the teensy system headers.
Maybe you could consider using some predefined type like uint8_t?




Hallo Alex,

I've replaced BYTE by byte and I've adjusted dependency to URTouch library. Those changes are not release yet. In order to try the changes, you need "clone" last version of AWind library. Hopefully you will manage now to compile everything.

AWind: GUI library for Arduino - TFT Displays


Sorry, Andrei, but it does not look like I will have time for this experiment.
You can try to compile AWind for teensy by installing Teensyduino and selecting Teensy 3.2 as your target.

I like the high level of abstraction AWind offers.  A library like this was sorely missing.  And I think your reliance on UTFT makes perfect sense.

For now though I look into Nextion displays.  For a small price premium they promise to offload low level jobs to the intelligent display.  Let's see how that will pan out.




No Problem Alex and thank you for the kind words about AWind library

Maybe in the next your project the AWind will get second chance from you  :)

tebe toje udachi!

AWind: GUI library for Arduino - TFT Displays


Hi Andrei!

I can't find how to set integer variable type of a radial gauge.
i need only 0 to 100% but as default wil be displayed 0.0 100.0
www.infoportal.it support at infoportal.it


Hi Elpapais

I've extended radial gauge constructor with parameter precision. In your case you need to set it to 0.
Just update your GaugeRadialPointer module from github. If something is not clear, let me know.

AWind: GUI library for Arduino - TFT Displays


Sep 15, 2016, 11:47 am Last Edit: Sep 15, 2016, 12:00 pm by elpapais
Hi Andrei!
Tnx for the modify.

i have some problem while you have changed a touch library whit the URTouch in my display Saintsmart 4.3 on't work.
Don't work is a eufemism while the calibration work fine but when i have calibrated and writted the new resolution into the file URTouchCD.h, the others examples in library URTouch still don't working.

i can change to reuse the old UTouch library but i need to modify your library.

other thing is into the Radial Gauge writting a name of gauge like: Thermometer or pressure or a simple text to know for whath is the gauge.

one more consideration:

You made a verry nice work an i think your library can come much interessant if you take a look your code and standardize all the process.
for example:
into text box numeric you write (for me is correct) a statement precision (precission must changed) but into the gauge  you write as parameter not as statement.
if you need some help or clarification tell me....
I hope to collaborate much more whit you while i have some ideas to write routines and objects much functionnally for made a verry professional library.

Regards Elio

I have some web servers in the world and if you whish we can set up a cooperative server for working ensamble or in a team....
www.infoportal.it support at infoportal.it


Hi Andrei!

little bug...

If float the code should be remain as is but if integer you must remove the -2 char for centering the right scale number.
as is the 100is not in the last thick.

Another question:

Label parameter must: Label(int, int, int, int, String&) like this:
Code: [Select]
_btnStartNastro = new Button(165, 104, 70, 20, F("On"));

but if i whish indicize the string (for example for multi language) like:
Code: [Select]
String StringOne = "On";
_btnStartNastro = new Button(165, 104, 70, 20, (StringOne));

Code: [Select]
String StringOne = "On";
_btnStartNastro = new Button(165, 104, 70, 20, StringOne);


www.infoportal.it support at infoportal.it


Hi Elio,

Thank you for your proposals, and of course any help is appreciated!

Your suggestion about helper text in radial gauge control - it could by my idea. :)   You can try to implement it by your own: you just need adjust the code in GaugeRadialPointer::OnDraw member function.
About difference between statement and parameter I didn't understand. Probably for this topic PM would be better.
Thank you also for your suggestion about cooperative server. I think for this moment github is good enough for actual development process.
About your code with StringOne. I suppose it doesn't work because of incompatible types __FlashStringHelper and String.
To declare your strings you should use something like const __FlashStringHelper * text = F("On").

AWind: GUI library for Arduino - TFT Displays


Hi everyone!

First of all, AndreiDegtiarev, thanks for sharing this library with us. I have been looking at its features and it is simply GREAT.

I was not able to test it yet, tho. I have a Mega2560 and a DUE, and I am having problems trying to connect my TFT/SD Shield. My shield works with the Adafruit TFT library, connecting it to my MEGA2560 as if it was a UNO shield, and it is detected as having the ILI9325 chipset (There is a function in Adafruit's library that gets you the chip's ID, which in this case detects as having  the identifier  0x9325 )

Looking through the libraries documentation (both UTFT and AWinds) I tried to fiddle with pinout with no success. I even tried using the HW_AVR_defines.h comment to use the shield with no success.

My shield is the following:

Any idea of what I might be missing? Any input will be appreciated. Thanks and again, great job with this library AndreiDegtiarev .

The issue seems to be, to me, that the screen doesn't have a dedicated serial communication - so finding pins for CLK and whatnot doesn't make sense. If it does I am not sure which function. I tried a few things, read all the docs, but it just doesn't seem like that's how it works at all.

Has anyone made progress there at all?


Hi Andrei,

First off, thanks for building and sharing your library! Is the highest supported resolution still 320x240?  I'm in the process of building an LED lighting system and would like to use a 3.5" touch screen (https://www.adafruit.com/products/2050)  to control it.  The screen has a resolution of 320x480, will this work with your library?  I'm not looking to create anything to complicated, a handful of buttons and some sliders.



Feb 23, 2017, 02:43 pm Last Edit: Feb 26, 2017, 04:17 pm by hydroTux
Hello Andrei
...and all readers :)

I am a german user, I have found this nice AWind and am glad that there is someone who has done the work, and gave all the beginners something to play and learn.

I have not collected any knowledge about "class" yet. To date, I have been living with the website of Henning Klarson and his Lib's. for my SainSmart Hardware.

Now I have found your great work here and would like to know if there is a combination of "SensorMonitor" and TabControl?

I have already tried to bring both sketches together but the SensorMonitor only works as a standalone?

I think this is a pity, but for beginners like me a challenge;)
Now I have played enough and would like to know exactly. How I have to do that.

Thanks for your help in advance.

I have merged the SensorMonitor and ViewModusWindow. Now it works but of course I have a "RAM disaster".

I think for my entire project, I need to look for more solutions. I've learned a lot and am already a bit further than before.

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!

via Egeo 16
Torino, 10131