![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树莓派
小弧光
这个作者很懒,什么都没留下…
展开
-
树莓派使用wiringSerial
#include <stdio.h>#include <wiringPi.h>#include <wiringSerial.h> int main(){ int fd; if(wiringPiSetup()<0) return 1; if((fd=serialOpen("/dev/ttyAMA0",9600))<0) retur...原创 2019-02-20 15:12:56 · 2092 阅读 · 0 评论 -
树莓派_Linux串口编程_实现接收
recv.h#ifndef _RECV_H#define _RECV_H#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <errno.h>#include <sys/types.h>#in...原创 2019-02-20 15:15:16 · 822 阅读 · 0 评论