Created
March 15, 2020 05:19
-
-
Save takataka5614/2603124dde1b5da6ccfc785c036b948e to your computer and use it in GitHub Desktop.
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
#include <M5Stack.h> | |
#define LED_PIN 16 // 16番ピンにLED接続 | |
// the setup routine runs once when M5Stack starts up | |
void setup(){ | |
M5.begin(); // Initialize the M5Stack object | |
pinMode(LED_PIN, OUTPUT); | |
} | |
// the loop routine runs over and over again forever | |
void loop() { | |
digitalWrite(LED_PIN, HIGH); | |
delay(1000); | |
digitalWrite(LED_PIN, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment