raspi_iot:統合テスト
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン | |||
raspi_iot:統合テスト [2019/04/02 09:27] – [プログラム全体] hirohito | raspi_iot:統合テスト [2021/07/05 11:15] (現在) – [プログラム全体] hirohito | ||
---|---|---|---|
行 139: | 行 139: | ||
ret = {} | ret = {} | ||
buf = @i2c.read(ADRS, | buf = @i2c.read(ADRS, | ||
- | p_cnt = to_uint24(buf[2].ord, buf[1].ord, buf[0].ord) | + | p_cnt = to_uint24(buf.getbyte(2), buf.getbyte(1), buf.getbyte(0)) |
ret[: | ret[: | ||
- | t_cnt = to_int16(buf[4].ord, buf[3].ord) | + | t_cnt = to_int16(buf.getbyte(4), buf.getbyte(3)) |
ret[: | ret[: | ||
raspi_iot/統合テスト.txt · 最終更新: 2021/07/05 11:15 by hirohito