Created
March 15, 2020 04:28
-
-
Save takataka5614/05278c786bea617409ed504b101acf55 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> | |
// 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