-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.提高校准时长,优化校准时机,校准时亮灯
- Loading branch information
Showing
10 changed files
with
168 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* File: \flashStatusLED.h | ||
* Project: LED | ||
* Created Date: 2024-04-28 15:07:32 | ||
* Author: Guoyi | ||
* ----- | ||
* Last Modified: 2024-04-28 15:19:25 | ||
* Modified By: Guoyi | ||
* ----- | ||
* Copyright (c) 2024 Guoyi Inc. | ||
* | ||
* ------------------------------------ | ||
*/ | ||
|
||
#ifndef STATUS_LED_H | ||
#define STATUS_LED_H | ||
|
||
#include "freertos/FreeRTOS.h" | ||
#include "freertos/task.h" | ||
#include "driver/gpio.h" | ||
|
||
static gpio_num_t gpio_led_num = GPIO_NUM_32; // 连接LED的GPIO | ||
|
||
void StatusLED_Init() | ||
{ | ||
// 设置控制LED的GPIO为输出模式 | ||
gpio_set_direction(gpio_led_num, GPIO_MODE_OUTPUT); | ||
} | ||
|
||
void enableStatusLED() | ||
{ | ||
gpio_set_level(gpio_led_num, 1); | ||
} | ||
|
||
void disableStatusLED() | ||
{ | ||
gpio_set_level(gpio_led_num, 0); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters