define hd44780 pins according to create hardware
This commit is contained in:
parent
d4478de954
commit
785860a37e
20
main.c
20
main.c
|
@ -31,20 +31,20 @@
|
|||
*
|
||||
* we use 4-bit mode since we are fast enough to send the whole data while receiving a byte, and this saves 4 I/Os
|
||||
*/
|
||||
#define HD44780_RS_PORT GPIO_PD
|
||||
#define HD44780_RS_PIN PD3
|
||||
#define HD44780_RW_PORT GPIO_PD
|
||||
#define HD44780_RW_PIN PD2
|
||||
#define HD44780_RS_PORT GPIO_PC
|
||||
#define HD44780_RS_PIN PC3
|
||||
#define HD44780_RW_PORT GPIO_PC
|
||||
#define HD44780_RW_PIN PC4
|
||||
#define HD44780_E_PORT GPIO_PC
|
||||
#define HD44780_E_PIN PC7
|
||||
#define HD44780_E_PIN PC5
|
||||
#define HD44780_DB4_PORT GPIO_PC
|
||||
#define HD44780_DB4_PIN PC6
|
||||
#define HD44780_DB5_PORT GPIO_PC
|
||||
#define HD44780_DB5_PIN PC5
|
||||
#define HD44780_DB6_PORT GPIO_PC
|
||||
#define HD44780_DB6_PIN PC4
|
||||
#define HD44780_DB7_PORT GPIO_PC
|
||||
#define HD44780_DB7_PIN PC3
|
||||
#define HD44780_DB5_PIN PC7
|
||||
#define HD44780_DB6_PORT GPIO_PD
|
||||
#define HD44780_DB6_PIN PD2
|
||||
#define HD44780_DB7_PORT GPIO_PD
|
||||
#define HD44780_DB7_PIN PD3
|
||||
|
||||
// the I²C address of this slave
|
||||
#define I2C_ADDR 0x28
|
||||
|
|
Loading…
Reference in New Issue