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.

SSD1306のアドレスについて(Arduinoの答えは、3Cまたは3D)

Last updated at Posted at 2022-12-27

目的
OLEDのテスト
I2Cアドレスについて、わかっていない人がいるので

 1. I2Cアドレスは、アドレス7ビット、読み込み書き込み1ビットの計8ビットである

 2. アドレスは、十六進で表現されている。

0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7

1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F

 3. SSD1306は、2個アドレスを持っていてデップスイッチ等で切り替え出来る

0x78 0111-1000

0x7A 0111-1010

 4. 0x78 を Arduinoのアドレスに変換する

1ビット右にシフトは、0011-1100 3C

 5. 0x7A を Arduinoのアドレスに変換する

1ビット右にシフトは、0011-1101 3D

 6. よつて、Arduino使用時のアドレスは、3Cまたは、3D

サーチもあるよ

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?