My issue is that the Ardunio library code defines all of the pins that the shield uses in the LCD4884.h header file:
#define SPI_SCK 2 #define SPI_MOSI 3 #define LCD_DC 4 #define SPI_CS 5 #define LCD_RST 6 #define LCD_BL 7
and the code for the .Net framework modified from the Nokia shield code is then:
public SPI.Configuration conf; public SPI SPI_port; public OutputPort RST = new OutputPort(Pins.GPIO_PIN_D6, false); public OutputPort DC = new OutputPort(Pins.GPIO_PIN_D4, false); public OutputPort BL = new OutputPort(Pins.GPIO_PIN_D7, false); public LCD4884() { init(); } public void init() { conf = new SPI.Configuration(Pins.GPIO_PIN_D5, false, 0, 0, false, true, 1000, SPI.SPI_module.SPI1); SPI_port = new SPI(conf);
I do not understand where in the Netduino code using the SPI class that I define the shield assigned pin 2 -> SPI_SCK and pin 3 -> SPI_MOSI that I believe are the clock and data lines for the SPI interface?
Is there an assumption about the pins that are used for these lines and these cant be changed to match the shield design?
I am not an expert in SPI and just starting with the netduino so ANY help very much appreciated.
Harley