摘要: 注意点: 如果在设置I2C_SLAVE的时候,提示device_busy,可以使用I2C_SLAVE_FORCE, 在驱动里面二者对应同一个case语句 应用层可以调用接口:i2c_smbus_write_word_data(fd, __, __);和i2c_smbus_read_word_data 阅读全文
posted @ 2017-05-23 22:31 aaronGao 阅读(4487) 评论(0) 推荐(0)
摘要: 该shell脚本有如下点: bash or dash case语句的写法 脚本help写法 参数是否为空的写法 算数运算的写法 下面的脚本: 多条case分支 字符串比较 阅读全文
posted @ 2017-05-23 12:57 aaronGao 阅读(2029) 评论(0) 推荐(0)