Skip to content

Instantly share code, notes, and snippets.

@takataka5614
Created March 15, 2020 05:19
Show Gist options
  • Save takataka5614/2603124dde1b5da6ccfc785c036b948e to your computer and use it in GitHub Desktop.
Save takataka5614/2603124dde1b5da6ccfc785c036b948e to your computer and use it in GitHub Desktop.
#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