This is a version of MCUFRIEND_kbv library with a support of w80x controllers. I will make a pull request to original MCUFRIEND_kbv repository.
LCD pins | W80x pins, var 1 | W80x pins, var 2 |
---|---|---|
LCD_D0 | PB0 | PB4 |
LCD_D1 | PB1 | PB5 |
LCD_D2 | PB2 | PB6 |
LCD_D3 | PB3 | PB7 |
LCD_D4 | PB4 | PB8 |
LCD_D5 | PB5 | PB9 |
LCD_D6 | PB6 | PB10 |
LCD_D7 | PB7 | PB11 |
LCD_RD | PA7 | |
LCD_WR | PA8 | |
LCD_RS | PA9 | |
LCD_CS | PA10 | |
LCD_RST | PA11 |
Pinout variant 2 mostly uses pins that don't have alternative features like PWM or SPI. However, the display output may be slightly slower in this case.
To choose between options, uncomment one of the lines #define USE_W80X_PINOUT1
or #define USE_W80X_PINOUT2
at the beginning of the file utility/mcufriend_special.h
.
Original MCUFRIEND_kbv README.