Re: [Toybox] [PATCH] Add i2ctransfer.

2023-07-10 Thread enh via Toybox
On Sat, Jul 8, 2023 at 2:32 AM Rob Landley wrote: > On 7/6/23 18:23, enh via Toybox wrote: > > Tested on a Raspberry Pi 400 with a BME680 connected to the relevant > > pins, and commands like `i2ctransfer 1 w3@0x77 0x60 0xb6 0xd0 r1`, which > > writes 0xb6 to register 0x60 of chip 0x77 on bus 1,

Re: [Toybox] [PATCH] Add i2ctransfer.

2023-07-08 Thread Rob Landley
On 7/6/23 18:23, enh via Toybox wrote: > Tested on a Raspberry Pi 400 with a BME680 connected to the relevant > pins, and commands like `i2ctransfer 1 w3@0x77 0x60 0xb6 0xd0 r1`, which > writes 0xb6 to register 0x60 of chip 0x77 on bus 1, and then reads one > byte. I broke down and did a cleanup p

[Toybox] [PATCH] Add i2ctransfer.

2023-07-06 Thread enh via Toybox
Tested on a Raspberry Pi 400 with a BME680 connected to the relevant pins, and commands like `i2ctransfer 1 w3@0x77 0x60 0xb6 0xd0 r1`, which writes 0xb6 to register 0x60 of chip 0x77 on bus 1, and then reads one byte. --- toys/other/i2ctools.c | 101 ++ 1 f