Thought I would post my remarks on using this driver for the SeeedStudio TFT 2.8 v2 touch screen (yes, I finally got it working!).
Hardware: Bridge the jumper pads P1, P2 and P3 using solder. This allows the touch screen to use the SPI header on the netduino.
Code: the chip select pin needs to change from D10 to D5. And the frequency from 1311 to 4000, LCD_DC is actually on D6 for this board.
You can also remove the P_RESET variable as this shield does not have a reset pin.
In the ili9341driver.cs file, in the constructor, the Configuration needs to change from:
Device1 = new SPI.Configuration(
Pins.GPIO_PIN_D10, // CS-pin
false, // CS-pin active state
0, // The setup time for the SS port
0, // The hold time for the SS port
false, // The idle state of the clock
true, // The sampling clock edge
1311, // The SPI clock rate in KHz
SPI_Devices.SPI1 // The used SPI bus (refers to a MOSI MISO and SCLK pinset)
);
To:
Device1 = new SPI.Configuration(
LCD_CS, // CS-pin
false, // CS-pin active state
0, // The setup time for the SS port
0, // The hold time for the SS port
false, // The idle state of the clock
true, // The sampling clock edge
4000, // The SPI clock rate in KHz
SPI_Devices.SPI1 // The used SPI bus (refers to a MOSI MISO and SCLK pinset)
);
And, down in the static variables, the LCD_DC needs to change from Pins.GPIO_PIN_A5 to Pins.GPIO_PIN_D6
And LCD_CS needs to go from Pins.GPIO_PIN_D10 to Pins.GPIO_PIN_D4
If it doesn't work, try setting pin D4 to High, which from my understanding tells the sd card reader that it does not have control of the SPI -
new OutputPort(Pins.GPIO_PIN_D4, true);