Overview

A 9 button input i2c device (8 tactile, one slide switch).

I've lost the source code i used for this :-(

i2c Details

Addressing

Address: 0x24 (W: 0x48, R: 0x49)

Write Commands

0x01 Read switches

Returns

Return #1
1 0 S1
0 0 B1
0 1 B2
0 2 B3
0 3 B4
0 4 B5
0 5 B6
0 6 B7
0 7 B8

Pins

0 Gnd
0 Vcc (3.3 - 5.0v)
0 i2c - SCL
0 i2c - SDA

Example (BusPirate)

[0x48 0x01][0x49 rr]

Send read switches command 0x48 to i2c write address 0x48 Read 2 bytes from i2c read address 0x49

Print/export
QR Code
QR Code electronics:i2cdev:9input (generated for current page)