导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. xolz
    3. 楼层
    X
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    xolz 发布的帖子

    • openmv用串口向上位机发送数据,为什么上位机收不到?

      UART Control

      This example shows how to use the serial port on your OpenMV Cam. Attach pin

      P4 to the serial input of a serial LCD screen to see "Hello World!" printed

      on the serial LCD display.

      import time
      from pyb import UART

      Always pass UART 3 for the UART number for your OpenMV Cam.

      The second argument is the UART baud rate. For a more advanced UART control

      example see the BLE-Shield driver.

      uart = UART(3, 19200)

      while True:
      uart.write("Hello World!\r")
      time.sleep_ms(1000)
      0_1733816076261_[LH@DW8BP7C7SEQ@1I]$MUG.png

      发布在 OpenMV Cam
      X
      xolz