M5Stack - SamuelLarkin/poulailler.IoT GitHub Wiki

M5Stack

Links

platformio.ini

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html

[env:m5stack-core-esp32]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
upload_speed = 921600
targets = upload

; lib_extra_dirs = ~/Documents/Arduino/libraries/
lib_deps = 
  M5Stack

main.cpp

#include <M5Stack.h>

// the setup routine runs once when M5Stack starts up

void setup(){

    // Initialize the M5Stack object

    M5.begin();

    // LCD display

    M5.Lcd.print("Hello world!");

 }

// the loop routine runs over and over again forever

void loop() {
   M5.update();
}
⚠️ **GitHub.com Fallback** ⚠️