Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the library work MCUFRIEND_kbv with stm32f401ccu6 #231

Open
brightproject opened this issue Apr 6, 2023 · 1 comment
Open

Does the library work MCUFRIEND_kbv with stm32f401ccu6 #231

brightproject opened this issue Apr 6, 2023 · 1 comment

Comments

@brightproject
Copy link

brightproject commented Apr 6, 2023

@prenticedavid hello!
Please help me.
I've changed board from a stm32f103c8t6(bluepill) to stm32f401ccu6(blackpill).
Connected blackpill as bluepill:

//LCD pins  |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | |RD |WR |RS |CS |RST| |SD_SS|SD_DI|SD_DO|SD_SCK|
//STM32 pin |PA7|PA6|PA5|PA4|PA3|PA2|PA1|PA0| |PB0|PB6|PB7|PB8|PB9| |PB12 |PB14  |PB15  |PB13   | **SPI2**

Load into blackpill code from LCD_ID_readreg.ino

Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) 00 00       ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 54 80 66 Manufacturer ID
reg(0x0009) 00 00 61 00 00      Status Register
reg(0x000A) 00 08       Get Power Mode
reg(0x000C) 00 66       Get Pixel Format
reg(0x0061) 00 00       RDID1 HX8347-G
reg(0x0062) 00 00       RDID2 HX8347-G
reg(0x0063) 00 00       RDID3 HX8347-G
reg(0x0064) 00 00       RDID1 HX8347-A
reg(0x0065) 00 00       RDID2 HX8347-A
reg(0x0066) 00 00       RDID3 HX8347-A
reg(0x0067) 00 00       RDID Himax HX8347-A
reg(0x0070) 00 00       Panel Himax HX8347-A
reg(0x00A1) 00 93 30 93 30      RD_DDB SSD1963
reg(0x00B0) 00 00       RGB Interface Signal Control
reg(0x00B4) 00 00       Inversion Control
reg(0x00B6) 00 02 02 3B 3B      Display Control
reg(0x00B7) 00 06       Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00   ILI9481, HX8357-B
reg(0x00C0) 00 0E 0E 0E 0E 0E 0E 0E 0E  Panel Control
reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00      GAMMA
reg(0x00CC) 00 04       Panel Control
reg(0x00D0) 00 00 00    Power Control
reg(0x00D2) 00 00 00 00 00      NVM Read
reg(0x00D3) 00 00 94 86 ILI9341, ILI9488
reg(0x00D4) 00 00 00 00 Novatek ID
reg(0x00DA) 00 54       RDID1
reg(0x00DB) 00 80       RDID2
reg(0x00DC) 00 66       RDID3
reg(0x00E0) 00 00 3E 13 09 0C 07 38 1B 4C 07 0C 03 20 0D 05     GAMMA-P
reg(0x00E1) 00 0F 10 1A 07 0E 06 26 C7 73 0D 03 0C 07 2C 07     GAMMA-N
reg(0x00EF) 00 80 00 10 60 40   ILI9327
reg(0x00F2) 00 18 A3 12 02 B2 12 FF 10 00 00 00 Adjust Control 2
reg(0x00F6) 00 54 80 66 Interface Control

Anybode graphictests not work.
Code of examples that compiles successfully on the blue tablet does not compile on the black tablet.
Do you no longer support the library MCUFRIEND_kbv for new chips?

@brightproject
Copy link
Author

@prenticedavid please help and answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant