- 博客(7)
- 收藏
- 关注
原创 串口:I2C-EEPROM 应用
查看i2c源代码进入i2c目录,使用vi编辑器打开源代码vi 24cXX.cvi 24cXX.hVi eeprog.c24cXX.c/*************************************************************************** copyright : (C) by 2003-2004 Stefano Barbato email : stefano@codesi
2022-04-26 08:59:40
304
原创 Ubuntu网络编程
1.查看while源代码#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <unis
2022-04-19 13:52:02
666
原创 Ubuntu开发板
线程的创建与终止在Ubuntu中,pthread库默认不存在,须进行安装sudo apt install -y glibc-doc manpages-posix-dev安装完成后可查看pthread使用手册man pthreads使用vim pthread_create.c来编辑代码创建或终止线程#include <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *att.
2022-04-12 10:36:41
465
原创 Linux的SCP NFS
#SCPLinux scp命令用于Linux之间复制文件和目录。首先将虚拟机1网络连接方式设置为桥接模式,以virtualbox为例,操作如下要实现scp的功能,首先需要安装ssh。输入下列代码安装。sudo apt install -y openssh-server nfs-kernel-server nfs-common tftpd-hpa tftp-hpa根据提示安装完毕后,在终端输入ifconfig查看虚拟机对外ip地址如图所示“inet地址:10.0.2.15”
2022-03-31 21:15:32
1098
原创 Linux下的C编程调试
#vim编辑hello.c##输入代码下载vimsudo apt install vim下载完成后输入vim hello.c创建并编辑hello.c文件在vim中编辑完成后键入esc,输入:wq。保存并推出编辑##执行gcc命令在终端中输入下列命令执行gcc执行完gcc命令后文件会在指定位置生成。##查看运行结果终端输入下列代码运行生成的文件./hello得到结果。#使用GDB 调试函数调用##使用list调试注意:在使用
2022-03-31 19:29:29
1781
转载 Ios平台安装Linux使用vim
在Appstore搜索并安装iSHiSH是一个模拟器,用来在ARM架构的iOS设备上模拟x86架构,让iOS设备在本地运行Linux Shell环境。下载完毕后,打开iSH就可以使用更换源:因为Alpine Linux默认使用的是国外的源,使用国外的服务器,网速特别慢,更换成国内阿里云、中科大、清华的源都可以。直接在命令行里敲入替换源的命令(以清华源为例):sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.e...
2022-03-14 12:47:04
1737
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人