非原创。

接收16进制数据,在TextBox委托显示:

 private void readPortandShow()
{
char[] HexChar = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
byte receivebyte = (byte)serialPort1.ReadByte();
char hexH = HexChar[receivebyte / 16];
char hexL = HexChar[receivebyte % 16];
this.tBox.Invoke(new MethodInvoker(delegate
{
this.tBox.AppendText(hexH.ToString() + hexL.ToString() + " ");
}));
}

  

最新文章

  1. KeyedPriorityQueue
  2. [原创] Easy SysLite V1.2 (2016.5.29更新,新增加WIN10支持,一个程序适配所有系统减肥)
  3. Qt中通过ui怎么引用不了pushbutton呢? 原来是这样…
  4. Coin Test
  5. java排序集锦
  6. BrandZ:2016年全球最具价值品牌百强榜(完整报告)
  7. css3遇到的一些属性
  8. hadoop生态圈安装详解(hadoop+zookeeper+hbase+pig+hive)
  9. Swift - 使用UIDatePicker实现倒计时功能
  10. MongoDB执行计划分析详解
  11. Mac和Windows系统下Mysql数据库的导入导出
  12. CSS、常用标签属性
  13. ubuntu安装tensorboardx
  14. netframework webapi exceptionless
  15. turbo boost - 睿频加速
  16. Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher
  17. 集成算法(chapter 7 - Hands on machine learning with scikit learn and tensorflow)
  18. android全屏
  19. MongoDB 3.0 Release Notes
  20. 【FJOI2014】最短路径树问题

热门文章

  1. Linux下SVN账户密码保存设置
  2. MySQL命令行数据操作使用心得(总结版)
  3. 集成学习---bagging and boosting
  4. UseCase事件描述叙事流规范
  5. 什么是流利语法Fluent Syntax
  6. HTML5管理与实际历史的分析(history物)
  7. 无法识别的属性“targetFramework”。请注意,属性名是大写和小写。错误的解决方案
  8. decorate pattern 装饰模式
  9. [LeetCode]Palindrome Partitioning 找出所有可能的组合回文
  10. jvm调音