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 1 year has passed since last update.

Spresense用3軸加速度センサーLIS2DW12がライブラリでも動きました

Posted at

少し前に
LIS2DW12を使ったSpresense用3軸加速度センサーボードを作ってみた
という記事を書きました。
この時にArduino用のライブラリが無いか調べて
arraym/LIS2DW12-Arduino-Lib
を見つけたのですが、残念ながらSpresenseで動きませんでした。
それでライブラリ化されていないプログラムを使ってテストをして、記事を書きましたが、
Spresense関係のプログラムをGitHubで公開されているTomonobuHayakawaさんがLIS2DW12-Arduino-Libのバグを修正してSpreseneでも使えるようにしてくださいました。
こちらで公開されています。
TomonobuHayakawa/LIS2DW12-Arduino-Lib

Arduino IDEへのライブラリ追加は zip形式のライブラリとして追加します。
examplesの中の SimpleRead を動かしてみました。

LIS2DW12_prg.PNG

どこも変更せずにコンパイルと書き込みができました。

コチラがターミナルへの表示です。
LIS2DW12.PNG

あっさりと動かすことが出来ました。
TomonobuHayakawaさん、ありがとうございました。

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?