Hi.
What have you tried so far? I am assuming that you have put the next 4 encoders on SR 11? If not then the code needs quite a bit more changing, I would recommend putting them on SR11 and moving the matrices over to SR12-SR15
If you have put the encoders on SR11, the code changes that you will need are:
in app.c, change
#define NUM_ENCODERS 40
to
#define NUM_ENCODERS 44
in mios32_config.h change:
#define FIRST_ENC_DIN_SR 1
#define DIN_16x16_L0 11
#define DIN_16x16_R0 12
#define DIN_16x16_L1 13
#define DIN_16x16_R1 14
to:
#define FIRST_ENC_DIN_SR 1
#define DIN_16x16_L0 12
#define DIN_16x16_R0 13
#define DIN_16x16_L1 14
#define DIN_16x16_R1 15
I can't see any other changes that will be required but I may be wrong

EDIT: Having looked at DINs.png, I can see that you have put the matrices on the first DINs and the encoders after them? That is the opposite of the way that the program is written and I would definitely recommend that you reconfigure it so that the encoders are on SR1-11 and the matrices are on SR12-15 otherwise the changes to the program are non-trivial (although still not that complicated!)
Phil
Edited by philetaylor, 15 May 2012 - 19:32.