文字化けは通信速度問題がよくあるとのことで、
設定を変えたいのですがPlatformIOだとiniファイルに書き込んで設定するようです。
以下のように通信速度を115200で指定したらなおりました。
monitor_speed = 115200
こちらの記事を書いたときのiniファイルに追記してみます。
全部だとこんな感じです。
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
; https://docs.platformio.org/page/projectconf.html
[env:m5stack-atom]
platform = espressif32
board = m5stack-atom
framework = arduino
lib_deps =
m5stack/M5Atom@^0.1.0
fastled/FastLED@^3.5.0
earlephilhower/ESP8266Audio@^1.9.7
monitor_speed = 115200
これを書くだけで特にビルドしなおしなどせずに文字化けが解消されました。