Hi3861的micropython移植之硬件I2C
原创 精华
这篇文章,先说一下硬件I2C的方案。后续文档会说明软件I2C的python移植。0、底层框架函数cSTATICconstmprommapelemtmachinei2clocalsdicttable[]{{MPROMQSTR(MPQSTRscan),MPROMPTR(&machinei2cscanobj)},standardbusoperations{MPROMQSTR(MPQSTRreadfrom),MPROMPTR(&machinei2creadfromobj)},{MPROMQSTR(MPQSTRreadfrominto),MPROMPTR(&machinei2creadfromintoobj)},{MPROMQSTR(MPQSTRwriteto),MPROMPTR(&machinei2cwritetoobj)...