摘要: 用户接口 所有GPIO接口都基于/sys/class/ GPIO /。 请求/释放 首先必须请求GPIO。所以如果我们想请求GPIQ 23,我们会这样做: root:/> echo 23 > /sys/class/gpio/export 如果此过程成功,您将得到一个 /sys/class/gpio/ 阅读全文
posted @ 2022-03-02 10:53 丶Future 阅读(1580) 评论(0) 推荐(0) 编辑
摘要: 服务器端代码 server.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <arpa/inet.h> #include 阅读全文
posted @ 2022-02-15 15:15 丶Future 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 一、安装cifs-utifs sudo apt-get install cifs-utils 二、列举指定IP地址所提供的共享文件夹列表 smbclient -L ${ip_addr} -U ${username}%${password} 三、挂载共享文件夹 sudo mount -t cifs / 阅读全文
posted @ 2022-02-14 17:14 丶Future 阅读(6609) 评论(0) 推荐(0) 编辑
摘要: 1、sudo 免密 使用sudo 打开 /etc/sudoers 修改这2个位置,增加NOPASSWD:,注意NOPASSWD:的冒号,且前后有空格 2、仅显示当前目录名 sudo gedit ~/.bashrc 将文件第60行的小写w改为大写W,第62行不用动 把hostname显示也去掉(@\h 阅读全文
posted @ 2022-02-10 17:23 丶Future 阅读(789) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 20是按ESC 步骤: 1. 开机重启 2. 常按ESC,此时会进入BIOS选项,直接回车就行 3. 回车后按一下ESC即可进入Grub启动菜单,如果按多了进入Grub命令行,那么重新来一遍。 4. 选择Ubuntu 的高级选项 5. 选择 recovery mode那行按e进入编辑模 阅读全文
posted @ 2022-02-09 09:34 丶Future 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: 旧的版本中可以直接编辑 rc.local 添加开机启动脚本,而新版本这个功能默认是禁用的; 提示 对于应用程序,也可以添加 systemd 服务使其开机自启Ubuntu 20.04 编辑 rc-local.service vi /lib/systemd/system/rc-local.service 阅读全文
posted @ 2022-02-08 14:41 丶Future 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 需要先安装arm-Linux编译链 安装教程:交叉环境安装以及交叉编译 - Leo's Notes (leoc.top) 首先将gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz解压至自建目录/usr/local/ARM-toolchai 阅读全文
posted @ 2021-12-16 16:55 丶Future 阅读(696) 评论(0) 推荐(0) 编辑
摘要: // 推荐快捷键 ctrl+shift+/ //将选择的行添加双斜杠注释或取消双斜杠注释 macro WangQiGuo_MultiLineComment() { hwnd = GetCurrentWnd() selection = GetWndSel(hwnd) LnFirst = GetWndS 阅读全文
posted @ 2021-12-15 10:18 丶Future 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 下面介绍下Ubuntu 环境下具体的安装过程:1、配置安装gcc/g++/gdb/make 等基本编程工具(必须装好) 刚装好的Ubuntu系统中已经有GCC了,但是这个GCC几乎什么文件都不能编译,因为缺少一些必须的头文件,所以要安装build-essential这个软件包。 可以在新立得里面搜索 阅读全文
posted @ 2021-11-18 15:58 丶Future 阅读(3098) 评论(0) 推荐(2) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #define FILE_InName "log.txt" //Read the data file name of the comparison #define FILE_OutN 阅读全文
posted @ 2021-11-18 12:06 丶Future 阅读(244) 评论(0) 推荐(0) 编辑