Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Fork of N3310LCD by
Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Diff: N3310SPIConfig.h
- Revision:
- 7:d7edfa5903e6
- Parent:
- 6:46bcc4e584c4
--- a/N3310SPIConfig.h Fri Jul 19 13:42:00 2013 +0000 +++ b/N3310SPIConfig.h Tue Jul 30 07:43:07 2013 +0000 @@ -47,17 +47,16 @@ // NOTE pins have been chosen not to conflict with any I2C usage. // MOSI = p5, MISO = p6, SCK = p7 is also an option -const PinName N3310SPIPort::MOSI = PTD2; -const PinName N3310SPIPort::MISO = PTD3; // not used for 3310 -const PinName N3310SPIPort::SCK = PTD1; +const PinName N3310SPIPort::MOSI = p11; +const PinName N3310SPIPort::MISO = p12; // not used for 3310 +const PinName N3310SPIPort::SCK = p13; -//const PinName N3310SPIPort::CE = PTC8; // Alternative test display with CE on pin 6 instead of 10 -const PinName N3310SPIPort::CE = PTD0; -const PinName N3310SPIPort::LCD_RST = PTD5; -const PinName N3310SPIPort::DAT_CMD = PTA13; -const PinName N3310SPIPort::BL_ON = PTC9; +const PinName N3310SPIPort::CE = p10; // was p21; +const PinName N3310SPIPort::LCD_RST = p9; // was p22; +const PinName N3310SPIPort::DAT_CMD = p8; // was p23; +const PinName N3310SPIPort::BL_ON = p24; -const PinName N3310SPIPort::AD0 = PTB0; // joystick analog +const PinName N3310SPIPort::AD0 = p20; // joystick analog /************************************************ *