Skip to content

Commit 61890e2

Browse files
committed
fix: io_pin_remap: adjust for new perimap APIs
1 parent aba2f2e commit 61890e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: cores/esp32/io_pin_remap.h

+8-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ int8_t gpioNumberToDigitalPin(int8_t gpioNumber);
7272
#define pinMatrixOutDetach(pin, invertOut, invertEnable) pinMatrixOutDetach(digitalPinToGPIONumber(pin), invertOut, invertEnable)
7373

7474
// cores/esp32/esp32-hal-periman.h
75-
#define perimanSetPinBus(pin, type, bus) perimanSetPinBus(digitalPinToGPIONumber(pin), type, bus)
76-
#define perimanGetPinBus(pin, type) perimanGetPinBus(digitalPinToGPIONumber(pin), type)
77-
#define perimanGetPinBusType(pin) perimanGetPinBusType(digitalPinToGPIONumber(pin))
78-
#define perimanPinIsValid(pin) perimanPinIsValid(digitalPinToGPIONumber(pin))
75+
#define perimanSetPinBus(pin, type, bus, bus_num, bus_channel) perimanSetPinBus(digitalPinToGPIONumber(pin), type, bus, bus_num, bus_channel)
76+
#define perimanGetPinBus(pin, type) perimanGetPinBus(digitalPinToGPIONumber(pin), type)
77+
#define perimanGetPinBusType(pin) perimanGetPinBusType(digitalPinToGPIONumber(pin))
78+
#define perimanGetPinBusNum(pin) perimanGetPinBusNum(digitalPinToGPIONumber(pin))
79+
#define perimanGetPinBusChannel(pin) perimanGetPinBusChannel(digitalPinToGPIONumber(pin))
80+
#define perimanPinIsValid(pin) perimanPinIsValid(digitalPinToGPIONumber(pin))
81+
#define perimanSetPinBusExtraType(pin, extra_type) perimanSetPinBusExtraType(digitalPinToGPIONumber(pin), extra_type)
82+
#define perimanGetPinBusExtraType(pin) perimanGetPinBusExtraType(digitalPinToGPIONumber(pin))
7983

8084
// cores/esp32/esp32-hal-rgb-led.h
8185
#define neopixelWrite(pin, red_val, green_val, blue_val) neopixelWrite(digitalPinToGPIONumber(pin), red_val, green_val, blue_val)

0 commit comments

Comments
 (0)