I'm having trouble with my 2.8 V2 tft touchscreen. I posted something previously about it, but I guess it was taken down. I've used a source code a vendor gave me, that was included in the arduino library, but it isn't working. Could someone please assist me with a suggestion?
void setup () {
 // put your setup code here, to run once:
#include <Adafruit_GFX.h>
#include <Adafruit_SPITFT.h>
#include <Adafruit_SPITFT_Macros.h>
#include <gfxfont.h>
#include <Adafruit_ILI9341.h>
}
void loop() {
 // put your main code here, to run repeatedly:
}
Error code ----> exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560
Post a link to the display that you have bought.
Install / Upgrade Adafruit_ILI9341 and Adafruit_GFX via the IDE Library Manager.
Then run all the Adafruit_ILI9341 library examples.
If you have a problem, quote library version and example name.
Don't post the whole code. (we can find it in our library examples)
Just paste any changes you have made e.g. constructor statement to match your display shield wiring.
There is no point in trying to write your own sketch until you have run all the library examples.
david_prentice:
Post a link to the display that you have bought.
Install / Upgrade Adafruit_ILI9341 and Adafruit_GFX via the IDE Library Manager.
Then run all the Adafruit_ILI9341 library examples.
If you have a problem, quote library version and example name.
Don't post the whole code. (we can find it in our library examples)
Just paste any changes you have made e.g. constructor statement to match your display shield wiring.
There is no point in trying to write your own sketch until you have run all the library examples.
David.
Okay, thank you sir. I have tried the Adafruit libraries the guy at the shop sent me. He said there's a code they used, but he has to find it. I'm using a Seeed studio tft, but I can't get the codes to cooperate. I'll paste the link for the product for you.
Don't ever trust the guy in the shop unless you know him personally.
Only use libraries "approved" by the IDE Library Manager.
We can get you working with Adafruit_ILI9341.
Once you have it working with Adafruit_ILI9341 we can try with other libraries.
Note that the Seeed library is non-standard.
You will find Adafruit libraries easier to use e.g. running popular sketches available on the Internet.
david_prentice:
Don't ever trust the guy in the shop unless you know him personally.
Only use libraries "approved" by the IDE Library Manager.
We can get you working with Adafruit_ILI9341.
Once you have it working with Adafruit_ILI9341 we can try with other libraries.
Note that the Seeed library is non-standard.
You will find Adafruit libraries easier to use e.g. running popular sketches available on the Internet.
Okay, I'm getting an error message that says, avrdude: can't open device "giveio"
avrdude: failed to open parallel port "lptl".
This is version 1.0.0.11.
Install / Update the Arduino IDE. Currently v1.8.9
Run a few examples e.g. Blink, Asciitable
Install / Upgrade Adafruit_ILI9341 and Adafruit_GFX via the IDE Library Manager.
Run Adafruit_ILI9341 examples
e.g. from Adafruit_ILI9341/examples/graphicstest/graphicstest.ino
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
Replace the constructor with:
Adafruit_ILI9341 tft = Adafruit_ILI9341(5, 6, 7);
I always enable verbose Compile in IDE: File->Preferences
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino-1.8.9\hardware\arduino\avr\libraries\SPI
Using library Adafruit_ILI9341 at version 1.5.1 in folder: C:\Users\David Prentice\Documents\Arduino\libraries\Adafruit_ILI9341
Using library Adafruit_GFX_Library at version 1.5.6 in folder: C:\Users\David Prentice\Documents\Arduino\libraries\Adafruit_GFX_Library
I just checked and no topic you posted has ever been taken down.
Here's how you can find your previous posts:
Hover the mouse pointer over your avatar in the top right corner of any arduino.cc page.
Click "Profile".
Click "Forum Settings > Edit".
Click "Show Posts".
Gizmobizmo8:
Okay, I'm getting an error message that says, avrdude: can't open device "giveio"
avrdude: failed to open parallel port "lptl".
This indicates you are doing a Sketch > Upload Using Programmer with Tools > Programmer > Parallel Programmer selected. Shortcuts for Upload Using Programmer are Ctrl + Shift + U or holding the Shift key while clicking the Upload button.
Are you intentionally trying to do an Upload Using Programmer? If so, do you really have a parallel port programmer (if so, you're probably the only Arduino user to use one this decade).
I just checked and no topic you posted has ever been taken down.
Here's how you can find your previous posts:
Hover the mouse pointer over your avatar in the top right corner of any arduino.cc page.
Click "Profile".
Click "Forum Settings > Edit".
Click "Show Posts".
This indicates you are doing a Sketch > Upload Using Programmer with Tools > Programmer > Parallel Programmer selected. Shortcuts for Upload Using Programmer are Ctrl + Shift + U or holding the Shift key while clicking the Upload button.
Are you intentionally trying to do an Upload Using Programmer? If so, do you really have a parallel port programmer (if so, you're probably the only Arduino user to use one this decade).
Thanks for the feedback. Yeah, that parallel port sounds strange, lol. Still trying to get use to all of this programming talk, lol.
Install / Update the Arduino IDE. Currently v1.8.9
Run a few examples e.g. Blink, Asciitable
Install / Upgrade Adafruit_ILI9341 and Adafruit_GFX via the IDE Library Manager.
Run Adafruit_ILI9341 examples
Yeah, I tried to do this step by step, and my Arduino Mega wasn't showing on the ports. So I googled how to update it, and it said to uninstall, then reinstall, then restart the computer. I'm having trouble reinstalling now, so I'll have to wait to try to run that code again. When I tried it, it didn't work, and I have the latest version already.
Install / Update the Arduino IDE. Currently v1.8.9
This should delete any previous installation. And install the new version.
You don't need to restart the PC. Or do anything yourself.
If you have already got v1.8.9 you can install v1.8.8 (to replace v1.8.9).
Then install v1.8.9 (to replace v1.8.8 )
Run a few examples e.g. Blink, Asciitable
It is very important to learn how to find an example e.g. File->Examples
And how to select the correct Board e.g. Tools->Board->Mega2560
And select the correct COM port e.g. Tools->Port
And how to build and run a sketch e.g. click the "right-arrow" icon below the Edit tab.
Or how to view the Serial Terminal. e.g. click right-hand icon
I am sure that there are many Internet videos.
Take notes on paper as you make each step.
Then you can describe exactly what you have done. And where any problems arise.
It may sound onerous. Pencil and paper are cheap. Numbered steps make it easy for you (or your readers) to replicate your checklist.
Gaining experience with the Arduino IDE requires no programming knowledge.
You navigate around menus and examples.
At most, you may have to edit a constructor statement to match your hardware.
I just got an email from the manufacturer. They just redirected me to the products page with the library. I'll just try that again, once I reinstall the Com ports, and LPT.