Skip to content

esp32: gpio: blinky: Open-drain outputs not working on ESP32-CAM #65244

Answered by ndrs-pst
towen asked this question in Q&A
Discussion options

You must be logged in to vote

After I take a look at gpio_esp32.c (gpio_esp32_config)
May be the problem come from which only can check up to (0 ~ 31)

static inline bool gpio_pin_is_valid(uint32_t pin) {
    return ((BIT(pin) & SOC_GPIO_VALID_GPIO_MASK) != 0);
}

Let's see if you change BIT(pin) -> BIT64(pin) instead.

Sorry, after checking with reference manual you should define GPIO33 as &gpio1 1 instead.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@towen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by towen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants