Winch
Member
Hello,
I work with an arduino leonardo PCB.
And use it together with a DFrobot LCD shield. (https://wiki.dfrobot.com/LCD_KeyPad_Shield_For_Arduino_SKU__DFR0009)
Now with this solution they have used multiple ports for the data flow!
To be precise:
D4 = portD.4
D5 = portC. 6
D6 = portD.7
D7 = portE. 6
The D4 etc. comes from the shield DFrobot PCB which has the standard pinout of the arduino.
But these D4, D5, D6, D7 are ultimately connected to multiple ports of the ATmega32U4!
Normally you do the following to Define the LCD:
You use a port in this case, for example, the D port in the example above.
But now you have multiple LCD_DREG define how to fix this? Never done it before.
I work with an arduino leonardo PCB.
And use it together with a DFrobot LCD shield. (https://wiki.dfrobot.com/LCD_KeyPad_Shield_For_Arduino_SKU__DFR0009)
Now with this solution they have used multiple ports for the data flow!
To be precise:
D4 = portD.4
D5 = portC. 6
D6 = portD.7
D7 = portE. 6
The D4 etc. comes from the shield DFrobot PCB which has the standard pinout of the arduino.
But these D4, D5, D6, D7 are ultimately connected to multiple ports of the ATmega32U4!
Normally you do the following to Define the LCD:
Code:
Define LCD_BITS = 4
Define LCD_DREG = PORTD
Define LCD_DBIT = 4
Define LCD_RSREG = PORTB
Define LCD_RSBIT = 4
Define LCD_EREG = PORTB
Define LCD_EBIT = 5
Define LCD_RWREG = PORTB
Define LCD_RWBIT = 0
You use a port in this case, for example, the D port in the example above.
But now you have multiple LCD_DREG define how to fix this? Never done it before.