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

Update ILI9341_GFX.c #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update ILI9341_GFX.c #2

wants to merge 1 commit into from

Conversation

lutfisan
Copy link

change &hspi5 to HSPI_INSTANCE and port & pin
so just edit ILI9341_STM32_Driver.h if use different pin and spi

change &hspi5 to HSPI_INSTANCE and port & pin
so just edit ILI9341_STM32_Driver.h if use different pin and spi
@mubarakky
Copy link

Hello @lutfisan I cant seem to get the library to work if I select SPI4. I changed the HSPI_INSTANCE to &hspi4 to as well. What could be the problem?

@lutfisan
Copy link
Author

lutfisan commented Nov 7, 2018

hi @mubarakky try this one https://github.com/lutfisan/STM32-ILI9341
just change #define HSPI_INSTANCE in ILI9341_STM32_Driver.h and pin define if needed. you can change touchscreen pin too in ILI9341_Touchscreen.h.

@mubarakky
Copy link

Is that one guaranteed to work with any SPIn?

@lutfisan
Copy link
Author

lutfisan commented Nov 7, 2018

I change to &hspi2 and it works

@mubarakky
Copy link

try SPI4

@mubarakky
Copy link

By the way I use STM32F767ZI

@lutfisan
Copy link
Author

lutfisan commented Nov 7, 2018

Please try by yourself, I have another job to do

I was adding STM32F746xx support, check my library again.
if you want to add more board, you can edit this line

#if defined(STM32F407xx)
	#include "stm32f4xx_hal.h"
#elif defined(STM32F103xB)
	#include "stm32f1xx_hal.h"
#elif define(STM32F746xx)
	#include "stm32f7xx_hal.h"
#else
	#error "Please select first the target STM32Fxxx device used in your application (in stm32fxxx.h file)"
#endif

@mubarakky
Copy link

Please try by yourself, I have another job to do

I was adding STM32F746xx support, check my library again.
if you want to add more board, you can edit this line

#if defined(STM32F407xx)
	#include "stm32f4xx_hal.h"
#elif defined(STM32F103xB)
	#include "stm32f1xx_hal.h"
#elif define(STM32F746xx)
	#include "stm32f7xx_hal.h"
#else
	#error "Please select first the target STM32Fxxx device used in your application (in stm32fxxx.h file)"
#endif

Sorry I didn't mean to bother you.

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

Successfully merging this pull request may close these issues.

2 participants