Skip to content

Commit

Permalink
起動通知を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
bokunimowakaru committed Dec 26, 2024
1 parent 14f3f56 commit 5423684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions learning/ex01_led_30/ex01_led_30.ino
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ void handleRoot(){
}

void setup(){ // 起動時に一度だけ実行する関数
pinMode(PIN_BTN,INPUT_PULLUP); // ボタン入力の設定
led_setup(PIN_LED_RGB); // RGB LED の初期設定(ポートを設定)
pinMode(PIN_BTN,INPUT_PULLUP); // ボタン入力の設定
Serial.begin(115200); // 動作確認用シリアル出力開始
Serial.println("M5 LED HTTP"); // 「LED HTTP」をシリアル出力表示
led_setup(PIN_LED_RGB); // RGB LED の初期設定(ポートを設定)
led_notify(1); // 起動をLEDで通知
WiFi.mode(WIFI_STA); // 無線LANをSTAモードに設定
WiFi.begin(SSID,PASS); // 無線LANアクセスポイントへ接続
while(WiFi.status() != WL_CONNECTED){ // 接続に成功するまで待つ
Expand Down
1 change: 1 addition & 0 deletions led_ws2812/led04_30leds/led04_30leds.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void setup(){ // 起動時に一度だけ実行す
Serial.println("RGB LED WS2812");
pinMode(PIN_BTN,INPUT_PULLUP); // ボタン入力の設定
led_setup(PIN_LED_RGB); // RGB LED の初期設定(ポートを設定)
led_notify(1); // 起動をLEDで通知
Serial.println("led=(20,40,10)");
led(20,40,10); // RGB LEDを点灯 R=20, G=40, B=10
}
Expand Down

0 comments on commit 5423684

Please sign in to comment.