1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PlatformIO環境でのESP32のシリアルコンソール文字化けメモ

Last updated at Posted at 2023-04-27

文字化けは通信速度問題がよくあるとのことで、

設定を変えたいのですが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

これを書くだけで特にビルドしなおしなどせずに文字化けが解消されました。

スクリーンショット 2023-04-27 19.02.18.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?