pxt-calliope/tests/i2c.ts
Peli de Halleux 37efefdcee surfacing missing repeat parameter (#380)
* surfacing missing repeat parameter

* updated docs
2017-04-03 10:30:25 -07:00

7 lines
225 B
TypeScript

let item = pins.i2cReadNumber(123, NumberFormat.Int8LE)
pins.i2cWriteNumber(123, 0, NumberFormat.Int8LE)
let item2 = pins.i2cReadNumber(123, NumberFormat.Int8LE, true)
pins.i2cWriteNumber(123, 0, NumberFormat.Int8LE, true)