pxt-calliope/tests/i2c.ts
Matthias L. Jugel 4d9dbb8a66 surface repeated start functionality in i2c
(cherry picked from commit 213c52d)
2017-04-04 10:14:13 +02:00

4 lines
221 B
TypeScript

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)