Skip to content

Instantly share code, notes, and snippets.

@mongonta0716
Last active December 15, 2023 08:44
Show Gist options
  • Save mongonta0716/d4a8948572ea3f723fc92c568c8d2578 to your computer and use it in GitHub Desktop.
Save mongonta0716/d4a8948572ea3f723fc92c568c8d2578 to your computer and use it in GitHub Desktop.
M5StickCPlus2 HelloWorld
#include <Arduino.h>
#include <M5Unified.h>
void setup() {
M5.begin();
M5.Display.setFont(&fonts::efontJA_16_b);
M5.Display.setTextColor(TFT_RED);
M5.Display.println("Hello, World!");
M5.Display.println("はろーわーるど");
}
void loop() {
}
; 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
; https://docs.platformio.org/page/projectconf.html
[env:m5stick-c]
platform = espressif32
board = m5stick-c
framework = arduino
upload_speed = 1500000
monitor_speed = 115200
board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608
board_build.f_flash = 80000000L
board_build.filesystem = spiffs
build_flags =
-DCORE_DEBUG_LEVEL=0
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-mfix-esp32-psram-cache-strategy=memw
board_build.partitions = default_8MB.csv
lib_deps =
m5stack/M5Unified@0.1.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment