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

M5Stack-CoreInkにBLE経由で文字列を表示する(その2)

Last updated at Posted at 2021-05-20

その1の続き

  • 2021.5.27 追記:efontによる日本語対応、リファクタリング、Battery Service追加
  • 2021.5.20 追記: アドバタイズにUUIDを追加
pAdvertising->addServiceUUID(SERVICE_UUID);

IMG_0750.jpg

やりたいこと

step2(この記事)

step1に以下を加える

  1. 1時間に一回バッテリー電圧を確認して表示する
  2. 起動時にRTCがリセットされていたら、または月が変わったらWiFi経由でNTPで時刻合わせする

step3(別記事にする予定)

  • M5StickCをBLEClient(セントラル)として動作させる(1)
    • 置く向きよってCoreInkに送る文字列を選択させる
    • ボタン押下でscan、connect、write実行
  • M5StickCをBLEClient(セントラル)として動作させる(2)
    • CoreInkのボタン状態がオンならば、表示、ブザー鳴動させる

参考

困ったこと

iPhoneから操作(Lightblueを使う)

アプリ起動すると見つかる

0FCC159B-8FBD-4818-B7AC-9FA8A9436C16.jpeg

接続

80E3443B-B4DC-4074-9E63-3531293DCE12.jpeg

サービス一覧

ED5DEB4E-0BB5-4A17-A348-977588928530.jpeg

サービス選択

1C0C5BEE-7AFB-47AB-902D-B5624FB4C18D.jpeg

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