![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
丨我是林北丨
若是一切如梦,人能何时醒来
展开
-
linux(Ubuntu、虚拟机):点击LCD触控屏,在终端显示点击点的坐标
效果图:代码:#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <linux/input.h>#include <stdio.h>int main(int argc, char const *argv[]){ struct input_event input_buf; int原创 2021-11-06 17:48:42 · 2100 阅读 · 0 评论 -
linux(虚拟机、Ubuntu):在LCD上显示四张图片(田字排版)
效果图:终端编译:图片信息:代码:#include <stdio.h>#include <sys/stat.h>#include <sys/mman.h>#include <sys/types.h>#include <fcntl.h>#include <unistd.h>int main(int argc , char **argv){ int x , y ; unsigned.原创 2021-11-06 16:28:56 · 1943 阅读 · 5 评论 -
linux(虚拟机、Ubuntu):LCD模拟器显示图片
.c文件代码:#include <stdio.h> //printf scanf#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <fcntl.h> //open read lseek write close#include <sys/mman.h> //mmapint main(int argc, char **argv)原创 2021-10-31 17:09:54 · 4543 阅读 · 7 评论 -
linux(虚拟机、Ubuntu):LCD模拟器显示各种颜色
.c文件编码:#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <sys/mman.h>int main(int argc,char **argv){ unsigned int x,y; /*1.打开LCD设备 */ int fd_lcd原创 2021-10-31 17:05:50 · 5346 阅读 · 5 评论 -
linux(虚拟机、Ubuntu):编码实现把文件1(1.txt)复制到文件2(2.txt)
#include<sys/types.h>#include<sys/stat.h>#include <fcntl.h>#include<unistd.h>#include <stdio.h>#include <string.h>int main(int argc, char const *argv[]){ int a, b; char buff[64], buff1[58]; int fd = open("1.tx.原创 2021-10-31 17:01:35 · 1793 阅读 · 0 评论