MathB
August 26, 2013, 8:25pm
1
I'm working with the arduino nano v3.0 and I have done a PCB.
I did a mistake and I will like to know how to change pin assignment in a library so that my analog 0 become 3
1 become 4
2 become 5
3 become 6 and
4 become 7
I'm working with the glcd ks0108
Thank you
Math
MathB
August 26, 2013, 8:36pm
3
Can you explain more plz?? Thk
system
August 26, 2013, 8:47pm
4
const byte analogLUT [] = {3, 4, 5, 6 };
or whatever.
Or you could edit the source of the library.
You can't use A6 or A7 in place of A3 or A4 because (unlike A0-A5) they don't have a matching digital I/O pin. They are for analog input only.
Time to cut traces and run wires to correct your circuit board.
MathB
August 26, 2013, 8:57pm
6
Damn! That bad I gonna need to reprint my pcb. :~
system
August 26, 2013, 8:59pm
7
You can't use A6 or A7 in place of A3 or A4
It depends what you're trying to do with them, doesn't it?
AWOL:
You can't use A6 or A7 in place of A3 or A4
It depends what you're trying to do with them, doesn't it?
The GLCD library documentation calls for them to be used for D_I (Data In?) and EN (Enable?) signals, pretty clearly digital signals.
After you download the library you can find the wiring diagram at:
Arduino/libraries/glcd/doc/html/page_ks0108_family.html