Skip to content

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

Open
@pabloandresm

Description

@pabloandresm

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: enhancementProposed improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions