WiFiAP热点:从代码仓库获取源码:https:gitee.combearpibearpihmnanoblobmasterapplicationsBearPiBearPiHMNanodocsquickstart%E6%BA%90%E7%A0%81%E8%8E%B7%E5%8F%96.mdhttps:gitee.comhelparticles4181更新源码:在Linux终端里移动到源码所在文件夹,然后输入:getpull编译代码仓库获取的源码:在Linux终端里移动到源码所在文件夹,然后输入:pythonbuild.pyBearPiHMNano代码执行顺序:WiFiSTA联网:步骤:1.初始化WIFI2.使能...
2022-08-09 23:15:59 3968浏览 2点赞 0回复 0收藏
一、在Windows上远程连接服务器1)打开MobaXterm工具,并依次点击:Session,SSH按钮。2)输入连接信息,远程地址,并点击OK。3)输入账号:bearpi,点击回车。输入密码:bearpi,注意,输入密码的时候屏幕不会显示,输完之后点击回车。5)在弹出的界面上,点击Yes保存账号信息,以免下次输入。二、把ubuntu文件远程映射到Windows上1)安装RaiDrive软件2)切换为中文语言3)添加链接信息取消勾选只读SFTP:(这个输入获取到的Lin...
2022-08-08 23:31:14 4136浏览 0点赞 0回复 0收藏
GPIO:扩展实例代码(B1):include<stdio.h>include<unistd.h>include"ohosinit.h"include"cmsisos2.h"include"wifiiotgpio.h"include"wifiiotgpioex.h"staticvoidLedTask(void){初始化GPIOGpioInit();设置GPIO2的复用功能为普通GPIOIoSetFunc(WIFIIOTIONAMEGPIO2,WIFIIOTIOFUNCGPIO2GPIO);设置GPIO2为输出模式GpioSetDir(WIFIIOTGPIOIDX2,WIFIIOTGPIODIROUT);WifiIotGpioDirval{0};定义读取变量valGpioGetDir(WIFIIOTGPIOIDX2,...
2022-08-07 20:47:01 3897浏览 0点赞 0回复 0收藏
任务管理:实例讲解(代码版):include<stdio.h>include<string.h>include<unistd.h>include"ohosinit.h"include"cmsisos2.h"osThreadIdtthread1ID;定义任务IDosThreadIdtthread2ID;定义任务ID任务一voidthread1(void){printf("enterthread1\r\n");osDelay(1);导致thread1阻塞,thread2运行printf("thread1delaydone\r\n");thread1阻塞超时,thread1开始运行,thread2就绪osThreadSuspend(thread1ID);挂起thread1printf("threa...
2022-08-06 23:21:06 4104浏览 0点赞 0回复 0收藏
BearPiHMNano十分钟上手教程网址:https:gitee.combearpibearpihmnanoblobmasterapplicationsBearPiBearPiHMNanodocsquickstartBearPiHMNano%E5%8D%81%E5%88%86%E9%92%9F%E4%B8%8A%E6%89%8B.md注意:我在安装官方镜像后,打开虚拟机发现sudoaptgetinstall命令执行不了,类似的下载命令也执行失败。我在下面的网站解决了这个问题https:blog.csdn.netm050848587articledetails108869543opsrequestmisc%257B%2522request%255Fid%25...
2022-08-05 21:58:46 4256浏览 0点赞 0回复 0收藏