Hi, newbie here, first experience with Arduino. I just received a MKRZERO. Goal is to get this display working:
I have the IDE running on my PC (Win7) and I was able to connect with the MKRZERO and compile and upload a modified version of blink so it appears that the basics are working.
I just installed the Adafruit_ILI9341 and Adafruit_GFX_Library, and have opened graphicstest that is included as part of the library package.
I suppose the next step is to change the pin configuration in the example file to reflect the correct pins on the MKRZERO board?
I see the following at the beginning of graphicstest:
// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10
// 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);
Looking at the UNO pinout I see #13=SCK, #12=MISO, #11=MOSI, #10=SS, #9= generic I/O pin
its not obvious to me how I redefine the correct pins for the MKRZERO, I suppose I can use pins 6, 7 for DC and CS, however I'm not clear on how I define or use previous definitions for the SCK, MOSI and MISO pins, I would think these are defined in a header file somewhere, however I'm not sure which one?
// For the MKRZERO.
#define TFT_DC 6 // I could use this pin JJJ
#define TFT_CS 7 // I could use this pin JJJ
//------------------------------------------------------------------------------------------
// 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);
//------------------------------------------------------------------------------------------
Suggestions?
Thanks