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

mbed LPC1768 ペリフェラルのピン指定Tips

Last updated at Posted at 2016-02-15

I2C通信するコードを書くとき、「コンストラクタの引数ってsda, sclだったっけ?scl, sdaだっけ?」と、よく迷ってしまいます。
そのたびにGoogle検索してHandbookを確認していたのですが、どうやらmbedライブラリでMBED_xxxがdefineされているようなので調べました。

define定義されているMBED_xxx

代表的なものを抜粋して図示します。
20160215A.PNG

使い方

I2C i2c(MBED_I2C0);   // I2C i2c(p28, p27);

define定義してある場所

mbed / libraries / mbed / targets / hal / TARGET_NXP / TARGET_LPC176X / PeripheralNames.h

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?