Skip to content

Commit

Permalink
2020.3.31 add examples
Browse files Browse the repository at this point in the history
2020.3.31 add examples
  • Loading branch information
xuhongv committed Mar 31, 2020
1 parent 5cc0cbc commit c3c8ae3
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 185 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf

# Example project files
# Example project files
**/sdkconfig
**/sdkconfig.old
**/build

2 changes: 2 additions & 0 deletions 17_light_utils_pwm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@

PROJECT_NAME := mcpwm_brushed_dc_control

EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common

include $(IDF_PATH)/make/project.mk

Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ esp_err_t light_driver_set_switch(bool status);

/**@{*/
/**
* @brief Set the status of the light
* @brief Get the status of the light
*/
uint16_t light_driver_get_hue();
uint8_t light_driver_get_saturation();
Expand Down
1 change: 0 additions & 1 deletion 17_light_utils_pwm/components/light_driver/iot_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,6 @@ esp_err_t iot_led_regist_channel(ledc_channel_t channel, gpio_num_t gpio_num)

ret = ledc_channel_config(&ledc_ch_config);
MDF_ERROR_CHECK(ret != ESP_OK, ret, "LEDC channel configuration");

return ESP_OK;
}

Expand Down
Loading

0 comments on commit c3c8ae3

Please sign in to comment.