Private
Public Access
2
0

readi2c: modify examples to use I2CSlave api

This commit is contained in:
Brendan Le Foll
2014-04-11 17:06:24 +01:00
parent 6bf02cf25e
commit 2c07ad9260
2 changed files with 8 additions and 4 deletions

View File

@@ -2,8 +2,9 @@
import pymaa
x = pymaa.I2C(27,28)
x = pymaa.I2CSlave(27,28)
x.address(0x62)
y= " "
ret = x.read(0x62, y, 2)
ret = x.read(y, 2)
print(y)