;----------------------------------------------------------------------- ; M5Unit-CRYPTO ; For UnitTest and examples (Using M5UnitUnified) ;----------------------------------------------------------------------- [platformio] [env] build_flags =-Wall -Wextra -Wreturn-local-addr -Werror=format -Werror=return-local-addr lib_ldf_mode = deep test_framework = googletest test_build_src = true lib_deps=m5stack/M5Unified m5stack/M5UnitUnified@>=0.4.4 ; -------------------------------- [m5base] monitor_speed = 115200 monitor_filters = esp32_exception_decoder, time upload_speed = 1500000 test_speed = 115200 test_ignore= native/* [Core] extends = m5base board = m5stack-core-esp32-16M lib_deps = ${env.lib_deps} [Core2] extends = m5base board = m5stack-core2 lib_deps = ${env.lib_deps} [CoreS3] extends = m5base board = m5stack-cores3 lib_deps = ${env.lib_deps} [Fire] extends = m5base board = m5stack-fire lib_deps = ${env.lib_deps} [StampS3] ;include M5Capsule, DinMeter extends = m5base board = m5stack-stamps3 lib_deps = ${env.lib_deps} [Dial] extends = m5base board = m5stack-stamps3 lib_deps = ${env.lib_deps} m5stack/M5Dial [Atom] ;include AtomMatrix,AtomLite,AtomU extends = m5base board = m5stack-atom lib_deps = ${env.lib_deps} [AtomS3] ;include AtomEchoS3R,AtomS3Lite,AtomS3U extends = m5base board = m5stack-atoms3 lib_deps = ${env.lib_deps} ; Using ./boards/m5stack-atoms3r.json [AtomS3R] ;include AtomEchoS3R extends = m5base board = m5stack-atoms3r lib_deps = ${env.lib_deps} ; Using ./boards/m5stack-nanoc6.json [NanoC6] extends = m5base board = m5stack-nanoc6 lib_deps = ${env.lib_deps} board_build.partitions = default.csv [StickCPlus] extends = m5base board = m5stick-c lib_deps = ${env.lib_deps} ; Using ./boards/m5stick-cplus2.json [StickCPlus2] extends = m5base board = m5stick-cplus2 lib_deps = ${env.lib_deps} [StickS3] extends = m5base board = esp32-s3-devkitc-1 board_build.arduino.partitions = default_8MB.csv board_build.arduino.memory_type = qio_opi build_flags = -DESP32S3 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 lib_deps = ${env.lib_deps} [Paper] extends = m5base board = m5stack-fire lib_deps = ${env.lib_deps} [CoreInk] extends = m5base board = m5stack-coreink lib_deps = ${env.lib_deps} [Cardputer] extends = m5base board = esp32-s3-devkitc-1 build_flags = -DESP32S3 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 lib_deps = ${env.lib_deps} [Tab5] extends = m5base board = esp32-p4-evboard board_build.mcu = esp32p4 board_build.flash_mode = qio build_flags = -DBOARD_HAS_PSRAM -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 lib_deps = ${env.lib_deps} [NessoN1] extends = m5base board = arduino_nesso_n1 lib_deps = ${env.lib_deps} [sdl] build_flags = -O3 -xc++ -std=c++14 -lSDL2 -arch arm64 ; for arm mac -I"/usr/local/include/SDL2" ; for intel mac homebrew SDL2 -L"/usr/local/lib" ; for intel mac homebrew SDL2 -I"${sysenv.HOMEBREW_PREFIX}/include/SDL2" ; for arm mac homebrew SDL2 -L"${sysenv.HOMEBREW_PREFIX}/lib" ; for arm mac homebrew SDL2 platform = native test_filter= native/* test_ignore= embedded/* lib_deps = ${env.lib_deps} ; -------------------------------- ;Choose framework [arduino_latest] platform = espressif32 @ 6.12.0 framework = arduino [nanoc6_latest] platform = espressif32 @ 6.12.0 platform_packages = platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.7 platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 framework = arduino [pioarduino_latest] platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.36/platform-espressif32.zip framework = arduino ; -------------------------------- ;Choose build options [option_release] build_type=release build_flags = ${env.build_flags} -DCORE_DEBUG_LEVEL=3 -DLOG_LOCAL_LEVEL=3 -DAPP_LOG_LEVEL=3 -DM5_LOG_LEVEL=3 [option_log] build_type=release build_flags = ${env.build_flags} -DCORE_DEBUG_LEVEL=5 -DLOG_LOCAL_LEVEL=5 -DAPP_LOG_LEVEL=5 [option_debug] build_type=debug build_flags = ${env.build_flags} -DCORE_DEBUG_LEVEL=5 -DLOG_LOCAL_LEVEL=5 -DAPP_LOG_LEVEL=5 -DDEBUG [option_map] build_type=release build_flags = ${env.build_flags} -DCORE_DEBUG_LEVEL=3 -DLOG_LOCAL_LEVEL=3 -DAPP_LOG_LEVEL=3 -DM5_LOG_LEVEL=0 -Wl,-Map,output.map ; Require at least C++14 after 1.13.0 [test_fw] lib_deps = google/googletest@1.12.1 ; -------------------------------- ; UnitTest ; -------------------------------- ; ID [env:test_UnitID_Core] extends=Core, option_release, arduino_latest lib_deps = ${Core.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Core2] extends=Core2, option_release, arduino_latest lib_deps = ${Core2.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_BuiltinATECC608_Core2] extends=Core2, option_release, arduino_latest lib_deps = ${Core2.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id build_flags = ${option_release.build_flags} -D USING_M5CORE2_AWS_BUILTIN [env:test_UnitID_CoreS3] extends=CoreS3, option_release, arduino_latest lib_deps = ${CoreS3.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Fire] extends=Fire, option_release, arduino_latest lib_deps = ${Fire.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_StampS3] extends=StampS3, option_release, arduino_latest lib_deps = ${StampS3.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Dial] extends=Dial, option_release, arduino_latest lib_deps = ${Dial.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Atom] extends=Atom, option_release, arduino_latest lib_deps = ${Atom.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_AtomS3] extends=AtomS3, option_release, arduino_latest lib_deps = ${AtomS3.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_AtomS3R] extends=AtomS3R, option_release, arduino_latest lib_deps = ${AtomS3R.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_NanoC6] extends=NanoC6, option_release, nanoc6_latest lib_deps = ${NanoC6.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_StickCPlus] extends=StickCPlus, option_release, arduino_latest lib_deps = ${StickCPlus.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_StickCPlus2] extends=StickCPlus2, option_release, arduino_latest lib_deps = ${StickCPlus2.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_StickS3] extends=StickS3, option_release, arduino_latest build_flags = ${StickS3.build_flags} ${option_release.build_flags} lib_deps = ${StickS3.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Paper] extends=Paper, option_release, arduino_latest lib_deps = ${Paper.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_CoreInk] extends=CoreInk, option_release, arduino_latest lib_deps = ${CoreInk.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Cardputer] extends=Cardputer, option_release, arduino_latest build_flags = ${Cardputer.build_flags} ${option_release.build_flags} lib_deps = ${Cardputer.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_Tab5] extends=Tab5, option_release, pioarduino_latest build_flags = ${Tab5.build_flags} ${option_release.build_flags} lib_deps = ${Tab5.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id [env:test_UnitID_NessoN1] extends=NessoN1, option_release, pioarduino_latest lib_deps = ${NessoN1.lib_deps} ${test_fw.lib_deps} test_filter= embedded/test_id ; -------------------------------- ; Examples by M5UnitUnified ; -------------------------------- ; ID ; PlotToSerial [env:UnitID_PlotToSerial_Core_Arduino_latest] extends=Core, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_Core2_Arduino_latest] extends=Core2, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_CoreS3_Arduino_latest] extends=CoreS3, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_StampS3_Arduino_latest] extends=StampS3, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_Atom_Arduino_latest] extends=Atom, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_AtomS3_Arduino_latest] extends=AtomS3, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_AtomS3R_Arduino_latest] extends=AtomS3R, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_Dial_Arduino_latest] extends=Dial, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_NanoC6_Arduino_latest] extends=NanoC6, option_release, nanoc6_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_StickCPlus_Arduino_latest] extends=StickCPlus, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_StickCPlus2_Arduino_latest] extends=StickCPlus2, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_StickS3_Arduino_latest] extends=StickS3, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> build_flags = ${StickS3.build_flags} ${option_release.build_flags} [env:UnitID_PlotToSerial_Paper_Arduino_latest] extends=Paper, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_CoreInk_Arduino_latest] extends=CoreInk, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_Fire_Arduino_latest] extends=Fire, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> [env:UnitID_PlotToSerial_Cardputer_Arduino_latest] extends=Cardputer, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> build_flags = ${Cardputer.build_flags} ${option_release.build_flags} [env:UnitID_PlotToSerial_Tab5_Arduino_latest] extends=Tab5, option_release, pioarduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> build_flags = ${Tab5.build_flags} ${option_release.build_flags} [env:UnitID_PlotToSerial_NessoN1_Arduino_latest] extends=NessoN1, option_release, pioarduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> ; For Core2AWS [env:BultinATECC608_PlotToSerial_Core2_Arduino_latest] extends=Core2, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/PlotToSerial> build_flags = ${option_release.build_flags} -D USING_M5CORE2_AWS_BUILTIN ; For the following samples, please refer to PlotToSerial to create env for your own environment ; Please configure the SSID, password, and URI ; 以下のサンプルは、PlotToSerial を参考にして、自分の環境にあった env を作成してください ; SSID,PASSWORD,URI を設定してください ;Blinky-Hello-World [env:UnitID_Blinky-Hello-World_Core_Arduino_latest] extends=Core, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/Blinky-Hello-World> build_flags = ${option_release.build_flags} ; -DEXAMPLE_SSID="\"\"" ; -DEXAMPLE_PASSWORD="\"\"" ; -DEXAMPLE_MQTT_URI="\"\"" ; [env:UnitID_Blinky-Hello-World_StickS3_Arduino_latest] ; extends=StickS3, option_release, arduino_latest ; build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/Blinky-Hello-World> ; build_flags = ${option_release.build_flags} ; ; -DEXAMPLE_SSID="\"\"" ; ; -DEXAMPLE_PASSWORD="\"\"" ; ; -DEXAMPLE_MQTT_URI="\"\"" ; [env:UnitID_Blinky-Hello-World_NanoC6_Arduino_latest] ; extends=NanoC6, option_release, nanoc6_latest ; build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/Blinky-Hello-World> ; build_flags = ${option_release.build_flags} ; -DEXAMPLE_SSID="\"\"" ; -DEXAMPLE_PASSWORD="\"\"" ; -DEXAMPLE_MQTT_URI="\"\"" ; [env:UnitID_Blinky-Hello-World_Tab5_Arduino_latest] ; extends=Tab5, option_release, pioarduino_latest ; build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/Blinky-Hello-World> ; build_flags = ${option_release.build_flags} ; ; -DEXAMPLE_SSID="\"\"" ; ; -DEXAMPLE_PASSWORD="\"\"" ; ; -DEXAMPLE_MQTT_URI="\"\"" ; [env:UnitID_Blinky-Hello-World_NessoN1_Arduino_latest] ; extends=NessoN1, option_release, pioarduino_latest ; board_build.partitions = default_16MB.csv ; build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/Blinky-Hello-World> ; build_flags = ${option_release.build_flags} ; ; -DEXAMPLE_SSID="\"\"" ; ; -DEXAMPLE_PASSWORD="\"\"" ; ; -DEXAMPLE_MQTT_URI="\"\"" ; For Core2AWS [env:BultinATECC608_Blinky-Hello-World_Core2_Arduino_latest] extends=Core2, option_release, arduino_latest build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitID/Blinky-Hello-World> build_flags = ${option_release.build_flags} -D USING_M5CORE2_AWS_BUILTIN ; -DEXAMPLE_SSID="\"\"" ; -DEXAMPLE_PASSWORD="\"\"" ; -DEXAMPLE_MQTT_URI="\"\""