david_prentice:
The constructor arguments are all dummies. MCUFRIEND_kbv is designed to run with the shields that God has designed for you.If you really want to hack your shield for different pins, you need to write a SPECIAL for the new pin wiring.
If you tell me the wiring, I will write the SPECIAL for you.Why do you want 4 ADC channels?
It is very easy to remove the LCD_RST pin and use a Software Reset. This gives you A4, A5.
If you have a clone Uno, most of these have A6, A7.Hence 4 ADC channels.
David.
Hello David;
So, I too have a 3.5" tft screen which uses this MCUFRIEND.h, running on a MEGA2560. Plugged in as a shield, the unit takes D2-D9.
I also have a WhiteBox.ch tentacle shield, which uses 4 of those outputs for multiplexing UARTS.
Two solutions, as far as I can tell:
1- somehow make use of the Chip Select pins and hi-Z the screen's data bus, when I multiplex (i'm hoping that the tentacle shield also has a CS) or
2- move the screen's data bus to the double header (D22-29) as the screen manual suggests. I have NO IDEA how to to this. Scoured the various x.h libraries for definitions, but can't find it.
So, if #2 is the solution, may I abuse of your offer to George and ask you to move the data bus as indicated above?
Cheers;
TriLife