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

Adafruit_ST7735.h and glcdfont.c preprocessor #if ARDUINO_ARCH_STM32 not enough #20

Open
pabloandresm opened this issue Jul 1, 2020 · 3 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@pabloandresm
Copy link

in these two lines:

defined(ARDUINO_ARCH_STM32)

!defined(ARDUINO_ARCH_STM32)

there is a test for definition or missing definition ARDUINO_ARCH_STM32, and it is not enough.

I had to add ARDUINO_ARCH_STM32F1 too.

Could you change those lines please?

for the glcdfont.c
instead of
!defined(ARDUINO_ARCH_STM32)
use
!defined(ARDUINO_ARCH_STM32) && !defined(ARDUINO_ARCH_STM32F1)

for the Adafruit_ST7735.h:
instead of defined(ARDUINO_ARCH_STM32)
use
defined(ARDUINO_ARCH_STM32) || defined(ARDUINO_ARCH_STM32F1)

@per1234 per1234 added the type: enhancement Proposed improvement label Jan 16, 2021
@fpistm
Copy link
Contributor

fpistm commented Jan 12, 2022

Just a quick note:
ARDUINO_ARCH_STM32F1 is for this core: https://github.com/rogerclarkmelbourne/Arduino_STM32
ARDUINO_ARCH_STM32is for this core: https://github.com/stm32duino/Arduino_Core_STM32

So issue is mainly that Roger's core support has not been added.
Title should be changed to something like: Add rogerclarkmelbourne/Arduino_STM32 support

@pabloandresm
Copy link
Author

I don't think that it is not supported. The display works fine regardless of the STM32xxxxx version of the chipset.

I think it is just a wrong define usage.

@fpistm
Copy link
Contributor

fpistm commented Jan 12, 2022

I think it is just a wrong define usage.

That is the point. It is not a wrong define usage. They are simply not for the same core. 😉

@per1234 per1234 added the topic: code Related to content of the project itself label Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants