This topic is blingual, English and Italian since I ignore who's reading it.
Scrivo in doppia lingua perchè non capisco come funzioni qui; il sito è parte in Inglese e parte in Italiano e tantissimi post sono in Inglese.
Then you made some mistake. Sketch folder, or "libraries" folder? If it's in the sketch folder, the files should not be in a sub directory.
The normal way to install a library manually, is download and unzip (it's usually a .zip file) and place the library folder in the "libraries" folder.
If it came from Github, edit and remove the "-master" from the folder name.
I know,today is Christmas and in this day miracles happen !
A note: this will be quite a long text so if you wish to skip all I understand.
When I posted here I had the display looking at me with a wonderful white screen ![]()
Then I turned all off and only few minutes ago I reloaded the IDE, still with the non working sketch; I connected the Arduino board and...miracle ! The graphic demo started showing all the beutiful tests.
The amazing thing is that the working sketch is not the one loaded in IDE, but a previous one that I unsuccesfully tried before getting the same white screen; I deducted this from the string shown on the display compared with the previous source.
Now, to make it even more interesting I loaded the (now) running sketch; launching the verify I still got this error:
D:\Arduino\Librerie\Rinky\UTFT\examples\Arduino (AVR)\UTFT_Demo_480x320\UTFT_Demo_480x320.ino:14:10: fatal error: UTFT.h: No such file or directory
#include <UTFT.h>
compilation terminated.
^~~~~~~~
I got the same error before, after I copied the UTFT library inside the the sketch folder.
Now almost two question arises:
- Why the first attempt failed (in both compiling and running)?
- Why it is now working even if it does not compile?
Last point (for my learning): when you say to '...place the library folder in the "libraries" folder' what you mean? I create a personal folder called 'Librerie' but IDE does not know it since there is no way to let it know; is there any other 'Libraries' folder somewhere?
Merry Chistmas to you and to all these wonderful people.
There is one at Sketch > Include Library > Add ZIP Library... in the Arduino IDE menus. This is the recommended way to install libraries that are not available from the Arduino Library Manager. It will ensure the library is correctly installed, which is sometimes difficult to accomplish via the manual library installation alternative described by aarg.
If you will provide a link to where you downloaded it from, I will give you detailed instructions you can follow to install the library via the "Add ZIP Library..." method.
Yes, things can sometimes go "haywire" with the manual install. It's just that I've done it thousands of times, so I'm used to it.
I got the UTFT from Rinky (http://www.rinkydinkelectronics.com/library.php?id=51).
Using 'Add Zip Library.' I was able to succesfully add the 'MCUFRIEND_kbv' but with the UTFT and same method I got this error:
Error: 13 INTERNAL: Library install failed: reading directory C:\Users\Utente\AppData\Local\Temp\arduino-cli-lib-2891789038\UTFT.h content: %!!(MISSING)w(*fs.PathError=&{readdir C:\Users\Utente\AppData\Local\Temp\arduino-cli-lib-2891789038\UTFT.h 3})
I zipped both files and move them into 'Arduino15/temp' as the error message suggests. Then I tried with 'Arduino15/libraries' and 'Arduino15/staging/libraries' with the same result.
Why it did work with the first library and not with the second?
I think that the UTFT is damned ![]()
Let me also say that I find this IDE quite cumbersome, particularly for not English speaking people.
I really would appreciate your help, thanks
No idea what you mean by that.
I think you followed the correct steps, I've added them below again to make sure.
- Download the zip [quote="orionis, post:6, topic:1069364"]
zipped both files
[/quote]
No idea what you mean by that.
I think you followed the correct steps, I've added them below again to make sure.
- Download the zip http://www.rinkydinkelectronics.com/download.php?f=UTFT.zip (that is the link to the zip on the page that you linked).
- You know have the zip somewhere.
- Sketch -> include libraries -> add .zip library
- Select the downloaded zip file and wait for the process to complete.
You can find the installed library in C:\Users\yourUsername\Documents\Arduino\libraries.
I meant this:
I already had the UTFT.h file stand-alone (unzipped from a previuos download).
I moved it in a new UTFT folder and zipped it, so now I had a UTFT.zip folder.
Selecting this folder it did not install the library.
I downloaded a fresh copy from Rinky and this time it istalled and the compiling went OK...mystery.
I do not understand why this library does not appear in Library Manager.
From Sketch/Include Library/Contributed libraries it is there, but in 'Library Manager All Type' or ''Library Manager Contributed' it does not appear.
Said that, all this work was unuseful since the UTFT library does not work with my ILI9486 shield; I then switched to the MCUFRIEND_kbv and everything was fine.
Thanks for the support
Nearly all libraries consist of a .h file and a .cpp (or .c) file; they might contain more than one of each.
There is more to a library than just those files to make it a valid library though I'm not familiar with the exact details. So just zipping some files does not make it a library.
Thanks, this is exactly what I was trying to know
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
