Score
0
Watch 99 Star 423 Fork 82

合宙Luat / LuatOSLuaMIT

不接iic设备也能读数据成功

Task
Done
在人间  Opened this issue

不接iic设备 也能读数据成功:
D/luat.i2c i2c0 setup complete
I/user.i2c initial 0

程序用的是302demo中的iic下面的 24c02main.lua 没有改直接运行

I/luat.main LuatOS@ec616 V0003, build at: Oct 15 2020 14:41:53
I/luat.fs LFS_Init re=0
D/luat.fs.LFS luat_fs_fopen /update.bin rb 00000000
D/luat.fs.LFS luat_fs_fopen /rollback_mark rb 00000000
D/luat.main luavm 73720 11840 11872
D/luat.main sys 30720 10208 11696
D/luat.fs.LFS luat_fs_fopen /main.luac r 0001B040
D/luat.fs.LFS luat_fs_fopen /main.luac r 0001B040
D/luat.fs.LFS luat_fs_fopen /main.luac rb 0001B040
D/luat.fs.LFS luat_fs_fopen /sys.luac r 0001B040
D/luat.fs.LFS luat_fs_fopen /sys.luac r 0001B040
D/luat.fs.LFS luat_fs_fopen /sys.luac rb 0001B040
D/luat.i2c i2c0 setup complete
I/user.i2c initial 0
D/luat.i2c i2c0 send data len =9
D/luat.i2c i2c0 send data len =9 complete
D/luat.i2c i2c0 send data len =1
D/luat.i2c i2c0 send data len =1 complete
I/user.i2c data1 A5A5A5A5A5A5A5A5 ¥¥¥¥¥¥¥¥
D/luat.i2c i2c0 send data len =9
D/luat.i2c i2c0 send data len =9 complete
D/luat.i2c i2c0 send data len =1
D/luat.i2c i2c0 send data len =1 complete
I/user.i2c data2 E088010002000000 àˆ\0\0\0\0
D/luat.i2c i2c0 send data len =9
D/luat.i2c i2c0 send data len =9 complete
D/luat.i2c i2c0 send data len =1
D/luat.i2c i2c0 send data len =1 complete
I/user.i2c data1 E088010004000000 àˆ\0\0\0\0
D/luat.i2c i2c0 send data len =9
D/luat.i2c i2c0 send data len =9 complete
D/luat.i2c i2c0 send data len =1
D/luat.i2c i2c0 send data len =1 complete
I/user.i2c data2 E088010005000000 àˆ\0\0\0\0

这种不接iic从设备 直接读取iic数据 在202中直接回报错,但好像在302中不报错,读出来数据中间位还会自增

534181 chenxuuu 1578926871 4674 wendal 1578914274 total 3 participants

Comments (3)

在人间 2020-11-09 12:40

@晨旭 好的谢谢你 我试试

4674 wendal 1578914274
Wendal 2020-11-12 22:13 owner

已经ok了吧? 结贴了哦

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority