Skip to content

Instantly share code, notes, and snippets.

@ttseng
Last active November 1, 2019 03:26
Show Gist options
  • Save ttseng/95f5a0e63275c444cd4f536b1ad504b0 to your computer and use it in GitHub Desktop.
Save ttseng/95f5a0e63275c444cd4f536b1ad504b0 to your computer and use it in GitHub Desktop.
#include <WiFi.h>
const char* ssid = "YOURSSID";
const char* password = "YOURPW";
void setup()
{
M5.begin();
WiFi.disconnect();
delay(1000);
M5.Lcd.println("START");
WiFi.begin(ssid,password);
while (WiFi.status() != WL_CONNECTED) {
delay(300);
}
M5.Lcd.println("connected");
M5.Lcd.println((WiFi.localIP()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment