mirror of
https://github.com/Ascend/ascend_community_projects.git
synced 2025-09-26 20:01:17 +08:00
update A200DK_GPIO_I2C/smbus/test/test_9.py.
Signed-off-by: lqw <616070323@qq.com>
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
import a200dksmbus as i2c
|
||||
|
||||
i2c.i2c_2_init()
|
||||
address = 0x68
|
||||
reg = 0x00
|
||||
values = [0x01, 0x02, 0x03, 0x04]
|
||||
res = i2c.write_i2c_block_data(address, reg, values)
|
||||
ADDRESS = 0x68
|
||||
REG = 0x00
|
||||
VALUES = [0x01, 0x02, 0x03, 0x04]
|
||||
res = i2c.write_i2c_block_data(ADDRESS, REG, VALUES)
|
||||
print(res)
|
||||
i2c.i2c_2_close()
|
||||
i2c.i2c_2_close()
|
Reference in New Issue
Block a user