zoukankan      html  css  js  c++  java
  • SoftwareSerial库

    参考书:《ARDUINO开发实战指南 AVR篇》

    功能概要:使用SoftWareSerial库可以通过软件模拟的方式利用任意两个I/O实现串口通信

    函数

    构造函数

    参数1:receivePin:接收数据的引脚号

    参数2:transmitPin:发送数据的引脚号

    用于创建对象时指定用于串口通信的数据发送引脚和数据接收引脚

    begin()

    参数:speed:串行通信速率

    用于设置串口串行通信速率

    read()

    参数:无

    用于读取串行通信中接收到的字符

    print()和println()

    用途:输出

    使用限制:

    最大数据传输速率只能达到9600bps

    SoftwareSerial.read()函数会一直等待,直到接收数据

    只有在SoftwareSerial.read()函数调用时,接收到的数据才会接收,其他时间接收到的数据都会丢失

  • 相关阅读:
    ssh图示+hibernate图示
    spring Transactional
    Spring datasource
    sqlloader导入数据
    Spring Aop Annotation(@Pointcut)
    ajax传输文件+检验
    Spring Aop Annotation
    JDK的动态代理
    nginx代理gitlab
    python相关
  • 原文地址:https://www.cnblogs.com/helloworldToDu/p/12535471.html
Copyright © 2011-2022 走看看