EasyManua.ls Logo

Orange Pi R1 Plus - Page 85

Orange Pi R1 Plus
115 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn
80
www.xunlong.tv
uart1
tx pin
corresponds to pin 5
rx pin
corresponds to pin 6
3) Then modify the serial device node name opened by the serial test program serialTest
in wiringOP to /dev/ttyS1
root@orangepir1plus:~/wiringOP/examples# vim serialTest.c
4) Recompile the serial test program serialTest in wiringOP
root@orangepir1plus:~/wiringOP/examples# make serialTest
[CC] serialTest.c
[link]
root@orangepir1plus:~/wiringOP/examples#
5) Finally run serialTest, if you can see the following print, it means that the serial
communication is normal
root@orangepir1plus:~/wiringOP/examples# ./serialTest
Out: 0: -> 0
Out: 1: -> 1
Out: 2: -> 2
Out: 3: -> 3
Out: 4: -> 4
Out: 5: -> 5
Out: 6: -> 6
Out: 7: -> 7
Out: 8: -> 8^C

Table of Contents

Related product manuals