Are you getting enough sleep?

いつも眠い.これが睡眠負債というやつか.

i2c の挙動

もうひとつわからないのが i2c. i2cdetect の挙動がいまいちなんですよね.

i2cdetect and node-i2c scans returning different results · Issue #27 · kelly/node-i2c · GitHub のように説明してるひともいるし.

試しにしてみると,以下のようになるから,やっぱりこんなものなのかな?

root@obsiot # i2cdetect -F 1
Functionalities implemented by /dev/i2c-1:
I2C                              yes
SMBus Quick Command              no
SMBus Send Byte                  yes
SMBus Receive Byte               yes
SMBus Write Byte                 yes
SMBus Read Byte                  yes
SMBus Write Word                 yes
SMBus Read Word                  yes
SMBus Process Call               no
SMBus Block Write                no
SMBus Block Read                 no
SMBus Block Process Call         no
SMBus PEC                        no
I2C Block Write                  yes
I2C Block Read                   yes