Skip to content

Instantly share code, notes, and snippets.

@takataka5614
Created March 15, 2020 04:28
Show Gist options
  • Save takataka5614/05278c786bea617409ed504b101acf55 to your computer and use it in GitHub Desktop.
Save takataka5614/05278c786bea617409ed504b101acf55 to your computer and use it in GitHub Desktop.
#include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// Initialize the M5Stack object
M5.begin();
// LCD display
M5.Lcd.println("Hello World");
// LCD display size 2 red
M5.Lcd.setTextColor(RED);
M5.Lcd.setTextSize(2);
M5.Lcd.println("Hello World");
// LCD display size 2.5 YELLOW
M5.Lcd.setTextColor(YELLOW);
M5.Lcd.setTextSize(2.5);
M5.Lcd.println("Hello World");
// LCD display size 3 BLUE
M5.Lcd.setTextColor(BLUE);
M5.Lcd.setTextSize(3);
M5.Lcd.println("Hello World");
// LCD display size 4 ORANGE
M5.Lcd.setTextColor(ORANGE);
M5.Lcd.setTextSize(4);
M5.Lcd.println("Hello World");
}
// the loop routine runs over and over again forever
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment