Skip to content

Commit

Permalink
Merge pull request #64 from ericbj29/main
Browse files Browse the repository at this point in the history
Fix GPIO levels
  • Loading branch information
ericbj29 authored Jan 11, 2024
2 parents 19888ff + a194635 commit 3df6cc4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ esp_err_t app_driver_led_on()
led_strip->refresh( led_strip, 100 );
#endif
#elif CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_LED_GPIO
ret = gpio_set_level( GRI_LED_GPIO, 0 );
ret = gpio_set_level( GRI_LED_GPIO, 1 );
#endif /* ifdef CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_LED_RMT */
return ret;
}
Expand All @@ -117,7 +117,7 @@ esp_err_t app_driver_led_off()
led_strip->clear( led_strip, 50 );
#endif
#elif CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_LED_GPIO
ret = gpio_set_level( GRI_LED_GPIO, 1 );
ret = gpio_set_level( GRI_LED_GPIO, 0 );
#endif
return ret;
}
Expand Down

0 comments on commit 3df6cc4

Please sign in to comment.