0
0

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 3 years have passed since last update.

M5Stack Core Ink をmacOS Big Surで動かしたときのメモ

Last updated at Posted at 2021-02-20

https://m5stack.com/products/m5stack-esp32-core-ink-development-kit1-54-elnk-display
https://docs.m5stack.com/#/en/core/coreink?id=tutorialampquick-start

board definition

Arduino IDE Additional Boards Manager URLsに追加

https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

Boards Manager でM5Stack公式のboard definitionをインストール

library

Library Manager から M5-CoreInkをインストール
で良いと思ったらインストールされるライブラリのバージョンが1.0
GitHubには1.1が上がっていて、sleep関連は1.1でないとだめ。
https://github.com/m5stack/M5-CoreInk
からzipでダウンロードしてインストール。

コンパイルして書き込んで見る

Exampleから M5-CoreInk HelloWorld を開いて Upload.

なんかエラーが出る。
esptool.pyを実行したときに No module named serialだと。

どのPythonが呼ばれているのだろう?
Big SurのPythonにPySerialはインストールされているのか?

/usr/local/bin/python3 にはPySerialがインストールされているらしいのでこれを呼び出すようにすれば良さそう。

/Users/username/Library/Arduino15/packages/m5stack/tools/esptool_py/3.0.0/esptool.py

の1行目を変更

 #!/usr/local/bin/python3

あとはDeveloper Toolsもインストールしないといけなかった。

参考になるURL

https://www.gwendesign.ch/kb/m5stack/m5coreink/
https://github.com/m5stack/M5-CoreInk/pull/6
https://github.com/hpsaturn/m5coreink-ntp-clock/blob/master/src/main.cpp
https://twitter.com/ksasao/status/1328488468557664256?lang=en
https://twitter.com/tnkmasayuki/status/1328657806723956736?lang=en
https://github.com/ksasao/ImageToCoreInk
https://qiita.com/coppercele/items/75e18dfbb23436f73268
https://note.com/rasen/n/n33a46bca11b5
https://github.com/m5stack/M5-CoreInk/issues/8

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?