surface repeated start functionality in i2c

This commit is contained in:
Matthias L. Jugel
2017-04-03 18:44:25 +02:00
parent 8e6917d677
commit 213c52dd00
4 changed files with 20 additions and 11 deletions

4
tests/i2c.ts Normal file
View File

@ -0,0 +1,4 @@
let item = pins.i2cReadNumber(123, NumberFormat.Int8LE)
pins.i2cWriteNumber(123, 0, NumberFormat.Int8LE)
let item = pins.i2cReadNumber(123, NumberFormat.Int8LE, true)
pins.i2cWriteNumber(123, 0, NumberFormat.Int8LE, true)