ILI9341 And XPT2046 Not Working Together

Just compiled on Arduino 1.18 + VisualMicro went perfectly, no compiler warning or errors reported.
EDIT: Should be 1.8.19
 
Last edited:
I'm also getting numerous errors about missing functions involving the serial monitor. I have not found all the missing parts yet so can't go any further. This problem may very well be the IDE V2.1.1. I have V1.8.19??? at my other house. I'll send a copy of the test sketch over there and try on the older IDE. That will tell me if the IDE version is the problem.
 
@Arctic_Eddie:

Thanks to @BriComp for double-checking the build in both environments. Sorry, I forgot to mention that I have not yet transitioned to the V2.x.x IDE. Code was built here (without errors / warnings) using Arduino IDE 1.8.19 + TD 1.59b2 (but TD.158 should work just fine). Let me know if anything else WRT this test example comes up.

Hope this helps . . .

Mark J Culross
KD5RXT
 
This is getting too weird. I just realized that I have V1.8.19 here on my laptop. I copied the test code over, updated the libraries, compiled and uploaded, and it fails even under the situation that works on V2.1.1. I'm at a loss now. Maybe I have two displays from a bad batch. I'll build a T4.0 tomorrow with my second display and try it on both PCs. Maybe a clue will come out of it.
 
Here's the first attempt to compile. I see a lot of these font errors so use whatever is available.

Code:
...
Multiple libraries were found for "ILI9341_t3.h"
  Used: C:\Users\yukon\Documents\Arduino\libraries\ILI9341_t3
  Not used: C:\Users\yukon\Documents\Arduino\libraries\ILI9341_t3-master
  Not used: C:\Users\yukon\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\ILI9341_t3
Multiple libraries were found for "font_Arial.h"
  Used: C:\Users\yukon\Documents\Arduino\libraries\ILI9341_t3-master
  Not used: C:\Users\yukon\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\ILI9341_t3
Multiple libraries were found for "XPT2046_Touchscreen.h"
  Used: C:\Users\yukon\Documents\Arduino\libraries\XPT2046_Touchscreen
  Not used: C:\Users\yukon\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\XPT2046_Touchscreen
Using library ILI9341_t3 at version 1.0 in folder: C:\Users\yukon\Documents\Arduino\libraries\ILI9341_t3 
Using library ILI9341_t3 at version 1.0 in folder: C:\Users\yukon\Documents\Arduino\libraries\ILI9341_t3-master 
Using library XPT2046_Touchscreen at version 1.4 in folder: C:\Users\yukon\Documents\Arduino\libraries\XPT2046_Touchscreen 
Using library SPI at version 1.0 in folder: C:\Users\yukon\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\libraries\SPI 
exit status 1

Compilation error: exit status 1

Sorry I have no idea what version of the libraries you are using. Looks like the ILI9341_t3 library must be real old, as it does not look like it is setup to handle
T4.x, which I added during the T4 beta cycle.

Try removing the ones out of your libraries directory and let it use the ones the Teensyduino installs, and see if those work.
Alternatively update your local versions to the current versions from github.
 
The IDE is doing really weird things now. The compiler is telling me I have repeated instances??? of the declaration of objects, or words to that effect. When load a sketch I get a copy of another version. I'm now wiping Arduino entirely from the PC and starting over.
 
I've got it reloaded but find the recent list is still loaded with copies of old files. Cannot find a way of clearing the recent list. The file naming and date is not consistent.
 
Look into your directory at: C:\Users\yukon\Documents\Arduino\libraries\
try removing any ILI9341_t3 stuff including one with name ending in master
ditto for the XPT...
 
Wonder of wonders, everything works. The touch data is correct and the examples will probably work now. I wiped out the entire library folder and was only missing MMC56x3 which was easily fixed. Now I have to go through 1500 lines of code and remove all my work-arounds. About an hour ago, I wiped Arduino completely, or so I thought, so all the stuff relating back to V1.03 are gone. It's now a virgin V2.1.1. I would still like to reset the recent file list as it has some bad links to sketches with improper names and old code.

Thanks again to all. This has been an enlightening experience. The project is back on-line.
 
Wonder of wonders, everything works. The touch data is correct and the examples will probably work now. I wiped out the entire library folder and was only missing MMC56x3 which was easily fixed. Now I have to go through 1500 lines of code and remove all my work-arounds. About an hour ago, I wiped Arduino completely, or so I thought, so all the stuff relating back to V1.03 are gone. It's now a virgin V2.1.1. I would still like to reset the recent file list as it has some bad links to sketches with improper names and old code.

Thanks again to all. This has been an enlightening experience. The project is back on-line.

To get rid of all history, etc., you might try the "full IDE cleanup" that KurtE describes in <this> thread post.

Mark J Culross
KD5RXT
 
I did a complete wipe and re-install and also cleared all arduino labeled items from the temp folder. However, the recent file list is still there. Hopefully, the old stuff will fall out the bottom.
 
I did a complete wipe and re-install and also cleared all arduino labeled items from the temp folder. However, the recent file list is still there. Hopefully, the old stuff will fall out the bottom.

For the older Arduino IDE (1.8.19), there are two places that the recent file list is typically kept (the location where the local data/settings are stored in, e.g. C:\Users\[user]\AppData\Local\Arduino15\preferences.txt & the location where the Arduino IDE is typically installed, e.g. C:\Program Files (x86)\Arduino\lib\preferences.txt). There is most certainly an equivalent for the 2.x.x IDE. If you successfully executed the full IDE cleanup as indicated above, you should have deleted them both. There may very well be another copy of the IDE installed in a non-typical location that is either being referenced on your system, or is actually being used on your system. Try searching your entire C: drive for "preferences.txt", then look at the internal contents of each of those to see if you see your outdated files listed. You have definitely got something unusual working against your complete success there !!

Mark J Culross
KD5RXT
 
I thought I had wiped the old copy of 2.1.1 including all folders in Local and Roaming. I use RevoUninstaller which finds all the residue. The installation was for Everyone and created the Arduino15 folder again but there is no preferences.txt found, yet. I'll keep looking for one of the filenames as it was rather unique. Hopefully, these file names will fall out the bottom of the list. A forum and DuckDuck search shows many people are trying to do this but not having much success. I hope it's not in the registry.

PS
Found it, somewhat. The list appears to originate in the following folder. Since most apps are built using the File Dialog object in whatever language it was created, Windows keeps the list. In that folder, I found numerous shortcuts to files that had been opened by Arduino and other apps. Deleting some of the shortcuts helped but apparently, Arduino grabbed a copy and has it stored someplace else. I'll search for one of the file names and see where else it's stored.
Code:
C:\Users\xxx\AppData\Roaming\Microsoft\Windows\Recent
 
Last edited:
@Arctic_Eddie:

Your last couple of posts did not make sense, particularly your most recent. A shortcut is Windows' simple a way of accessing a real file from somewhere else. Deleting shortcuts does nothing to get rid of actual files. If you are, as you indicated, using an uninstaller (RevoUninstaller), rather than actually searching for the files in question (preferences.txt) & deleting the actual files, then you are very likely causing your own pain. Pay absolutely no attention to any of the "many people [who] are trying to do this but not having much success." There is no way to know exactly what they might be doing, or why they may or may not have had success. Concentrate on your particular system and your particular actions. Please do specifically the following: 1) make sure there are no copies of Arduino (of any version) running, 2) use the capabilities built into Windows (called "Apps & features" on my particular Win10 machine) to uninstall/remove any/all copies of the Arduino IDE, 3) search for all actual copies of preferences.txt on your entire C: drive, & 4) finally, delete them (or better yet, delete the entire folder that contains them). Until you do that, there is no way to be sure of exactly what you have on your system. I do not intend for this to be harsh (although, in re-reading it, it could easily come across that way, even though that is definitely not the intent). We really are trying to be helpful, but we are not sitting in front of your system, and we cannot see what you are seeing and/or doing. Speaking for myself and this message, I'm just trying to be very specific about what you should do that might ensure your best success. Please continue to ask questions, and most certainly, please continue to post the results of trying these specific actions.

Hope that helps . . .

Mark J Culross
KD5RXT
 
The Win Apps list shows only one copy of Arduino and it's the V2.1.1 I installed yesterday. All the Ard folders have yesterday's date. I searched C:\ and there is no preferences.txt. I also searched the registry and there are numerous references but all to operational aspects of the app and none regarding project files. I also searched for one of the unwanted file names, already deleted, and found none even though it's still on the Ard list. I also loaded the OV7670 example and saved it under a different name in it's own project folder. That name now appears in both the Win recent list and Ard list, as expected. Some day, the unwanted project names will fall out the bottom of the list.
 
Back
Top