Ok. Ci sono 2 file da modificare.
in glcd/glcd_Config.h
/*
* autoconfig includes - (comment this out if using manual configurations, see below)
*/
#include "config/ks0108_Panel.h" // automatically configure library for a ks0108 panel
//#include "config/ks0108-192x64_Panel.h" // automatically configure library for a ks0108 192x64 panel
/*
* If you want to explicitly select a manual configuration, you can edit the desired manual configuration
* to fill in or modify the configuration information to meet your needs.
* You can also use these files as a template to make customized copies to hold specific configurations.
*
* Remember that to activate your manual configuration you uncomment the #include for the desired file
* and make sure that all the other config #includes are commented (including the autoconfig above)
*/
//#include "config/ks0108_Manual_Config.h" // generic ks0108 configuration
//#include "config/Modadm12864f_Manual_Config.h" // configuration for BGMicro 128x64 display with pinout diagram
//#include "config/Modvk5121_Manual_Config.h" // configuration for vk5121 122x32 display with pinout diagram
//#include "config/Modmt12232d_Manual_Config.h" // configuration for Russian mt12232 display with pinout diagram
devi commentare #include "config/ks0108_Panel.h" e togliere il commento da //#include "config/ks0108_Manual_Config.h"
in glcd/config/ks0108_Manual_Config.h
/* Data pin definitions
*/
#define glcdData0Pin 8
#define glcdData1Pin 9
#define glcdData2Pin 10
#define glcdData3Pin 11
#define glcdData4Pin 4
#define glcdData5Pin 5
#define glcdData6Pin 6
#define glcdData7Pin 7
/* Arduino pins used for Commands
* default assignment uses the first five analog pins
*/
#define glcdCSEL1 14
#define glcdCSEL2 15
// uncomment the following if more than two chip select pins are needed
//#define glcdCSEL3 3 // third chip select line on pin 3 if needed
//#define glcdCSEL4 2 // fourth chip select if needed
#define glcdRW 16
#define glcdDI 17
#define glcdEN 18
// Reset Bit - uncomment the next line if reset is connected to an output pin
//#define glcdRES 19 // Reset Bit
devi modificare i pin in base agli spostamenti dei collegamenti che stai effettuando.
Ad esempio puoi mettere 3 al posto di 11 e andare a collegare il cavetto che arriva adesso al pin 11 al pin 3.
Stessa cosa per il pin 10 con A5 (dovrai scrivere 19), spostando quindi il collegamento dal pin 10 al pin A5.