Skip to content

Commit

Permalink
ledの消灯を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ShunjiHashimoto committed Aug 12, 2024
1 parent 0c1353b commit 70fc29f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Core/Inc/led.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class LedBlink {
public:
void toggle();
void stop();
};


Expand Down
4 changes: 4 additions & 0 deletions Core/Src/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ void LedBlink::toggle() {
HAL_Delay(100);
HAL_GPIO_WritePin(GPIOB, Debug_LED_Pin, GPIO_PIN_RESET); //LEDを点灯
HAL_Delay(100);
}

void LedBlink::stop() {
HAL_GPIO_WritePin(GPIOB, Debug_LED_Pin, GPIO_PIN_RESET);
}

0 comments on commit 70fc29f

Please sign in to comment.