HelloWorld.ino 460 B

123456789101112131415161718192021222324
  1. #include <M5Stack.h>
  2. // the setup routine runs once when M5Stack starts up
  3. void setup(){
  4. // Initialize the M5Stack object
  5. M5.begin();
  6. /*
  7. Power chip connected to gpio21, gpio22, I2C device
  8. Set battery charging voltage and current
  9. If used battery, please call this function in your project
  10. */
  11. M5.Power.begin();
  12. // LCD display
  13. M5.Lcd.print("Hello World");
  14. }
  15. // the loop routine runs over and over again forever
  16. void loop() {
  17. }