Skip to content

INPUT and OUTPUT are not 0 and 1 for all supported architectures #371

Open
@soundanalogous

Description

@soundanalogous

I discovered this while attempting to support ESP32 boards. In the arduino-esp32 library, INPUT and OUTPUT are defined as 1 and 2 instead of 0 and 1 (as typically found in Arduino.h).

To resolve, PIN_MODE_INPUT and PIN_MODE_OUTPUT should be used instead of INPUT and OUTPUT in StandardFirmata variants as well as in ConfigurableFirmata. The issue is here and here in StandardFirmata for example.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions