pi4j操作树莓派串口

准备工作:http://ukonline2000.com/?p=880

pi4j调用:config.device("/dev/ttyAMA0")
                  .baud(Baud._115200)
                  .dataBits(DataBits._8)
                  .parity(Parity.NONE)
                  .stopBits(StopBits._1)
                  .flowControl(FlowControl.NONE);

猜你喜欢

转载自blog.csdn.net/a445849497/article/details/61650878