Skip to content

MCUFriend Library doesn't compile properly #1362

@BSG-SalvoL

Description

@BSG-SalvoL

Describe the problem

Compiling the same code using this library with old arduino ide works perfectly, but doing this with new IDE a lot of errors appears considering all variables in macro expansion like undefined.
Example:

c:\Users\xxx\Documents\Arduino\libraries\MCUFRIEND_kbv\utility/mcufriend_shield.h:1210:38: error: 'WR_PIN' was not declared in this scope
 1210 | #define WR_IDLE    PIN_HIGH(WR_PORT, WR_PIN)

To reproduce

Just compile a code with this library

Expected behavior

The compilation to being successful.

Arduino IDE version

Arduino IDE 2.0.0-rc9.2

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions