You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
372 B

  1. #include "rgb_led.h"
  2. void gpio_rgb_init() {
  3. gpio_config_t gpio_grb_led_structer;
  4. gpio_grb_led_structer.intr_type = GPIO_INTR_DISABLE;
  5. gpio_grb_led_structer.mode = GPIO_MODE_OUTPUT;
  6. gpio_grb_led_structer.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
  7. gpio_grb_led_structer.pull_down_en = 0;
  8. gpio_grb_led_structer.pull_up_en = 0;
  9. gpio_config(&gpio_grb_led_structer);
  10. }