Skip to content

error: 'dht_gpio' undeclared #4

Description

@nopnop2002

The issue

#ifdef CONFIG_EXAMPLE_INTERNAL_PULLUP
    //gpio_set_pull_mode(dht_gpio, GPIO_PULLUP_ONLY);
    gpio_set_pull_mode(CONFIG_EXAMPLE_DATA_GPIO, GPIO_PULLUP_ONLY);
#endif

Which SDK are you using?

esp-idf

Which version of SDK are you using?

ESP-IDF v5.5.3-dirty

Which build target have you used?

  • esp32
  • esp32s2
  • esp32s3
  • esp32c2
  • esp32c5
  • esp32c6
  • esp32c61
  • esp32h2
  • esp32p4
  • esp8266
  • other

Component causing the issue

dht

Anything in the logs that might be useful for us?

/home/nop/rtos/dht/examples/default/main/main.c:21:24: error: 'dht_gpio' undeclared (first use in this function)
   21 |     gpio_set_pull_mode(dht_gpio, GPIO_PULLUP_ONLY);

Additional information or context

https://github.com/esp-idf-lib/dht/blob/main/examples/default/main/main.c#L21

Confirmation

  • This report is not a question nor a request for drivers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions