byte求高四位和低四位的值   

Dictionary<String, int> dict = new Dictionary<String, int>();
            dict.Add("BT", (bytes[1] & 0xf0) >> 4);//BT 电量   11110000
            dict.Add("SP", bytes[1] & 0x0f);//SP 瞬时速度    1111

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-05-19
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案