当前位置: 首页 > news >正文

公司网页制作网站数据分析师报考官网

公司网页制作网站,数据分析师报考官网,无锡市疫情最新消息,网站建设中一般要多久有时候需要重置树莓派 Pico,一种方法是按住 Pico 上的“BOOTSEL”按钮再插入 USB;或者用按钮连接“RUN”和“GND”针脚,然后同时按下这个按钮和“BOOTSEL”按钮。这样就可以进入 USB 模式,这样从一定程度进行了重置。 但是这种方…

有时候需要重置树莓派 Pico,一种方法是按住 Pico 上的“BOOTSEL”按钮再插入 USB;或者用按钮连接“RUN”和“GND”针脚,然后同时按下这个按钮和“BOOTSEL”按钮。这样就可以进入 USB 模式,这样从一定程度进行了重置。

但是这种方法不一定适用所有情况,一些外围设备可能用这种办法不能重置成功。比如说有时候放入让 LED 闪烁的blink.uf2之后,上面的办法可能有时没有让 LED 不闪了。

如果出现了这种外围设备无法重置的情况,那么就编译一个重置程序放入 Pico 来进行重置。这个重置程序在官方的 pico-examples 中也有这个例子,叫做hello_reset。下面是我将其提炼出来,因为原本是没有单独构建这个二进制执行文件的CMakeLists.txt文件。

首先是hello_reset.c的代码:

#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/resets.h"/// \tag::hello_reset[]
int main() {stdio_init_all();printf("Hello, reset!\n");// Put the PWM block into resetreset_block(RESETS_RESET_PWM_BITS);// And bring it outunreset_block_wait(RESETS_RESET_PWM_BITS);// Put the PWM and RTC block into resetreset_block(RESETS_RESET_PWM_BITS | RESETS_RESET_RTC_BITS);// Wait for both to come out of resetunreset_block_wait(RESETS_RESET_PWM_BITS | RESETS_RESET_RTC_BITS);return 0;
}
/// \end::hello_reset[]

然后是最重要的CMakeLists.txt,如下:

cmake_minimum_required(VERSION 3.12)include(pico_sdk_import.cmake)project(hello_reset)pico_sdk_init()add_executable(hello_reset 
hello_reset.c
)target_link_libraries(hello_reset pico_stdlib)pico_add_extra_outputs(hello_reset)

此外记得导入pico-sdk中的pico_sdk_import.cmake文件到这个目录下,然后创建空目录build

$ cp $PICO_SDK_PATH/external/pico_sdk_import.cmake .
$ mkdir build
$ cd build

这时就可以进行构建了:

$ cmake ..
$ make -j4

构建完成之后将hello_reset.uf2拖到 USB 模式下的 Pico 就行了。这时候你试一试就会发现 LED 不闪了。

如果你对构建有疑问还请移步我的另外一篇博客:《如何使用Mac终端给树莓派pico构建C/C++程序进行开发,以及遇到各种问题该怎么处理,不使用任何IDE或编辑器(例如VS Code)》

希望能帮到有需要的人~


文章转载自:
http://mysterium.qwfL.cn
http://hypotonicity.qwfL.cn
http://seniority.qwfL.cn
http://buncombe.qwfL.cn
http://immeasurably.qwfL.cn
http://authorial.qwfL.cn
http://vaccinator.qwfL.cn
http://beetle.qwfL.cn
http://synectic.qwfL.cn
http://eec.qwfL.cn
http://polycistronic.qwfL.cn
http://encave.qwfL.cn
http://polyoxymethylene.qwfL.cn
http://hydratable.qwfL.cn
http://lamaism.qwfL.cn
http://eudiometer.qwfL.cn
http://comandante.qwfL.cn
http://bearbaiter.qwfL.cn
http://goldarned.qwfL.cn
http://psychoanalysis.qwfL.cn
http://squiggly.qwfL.cn
http://ilka.qwfL.cn
http://pyrogenation.qwfL.cn
http://ablaze.qwfL.cn
http://oersted.qwfL.cn
http://probang.qwfL.cn
http://unitholder.qwfL.cn
http://mab.qwfL.cn
http://almemar.qwfL.cn
http://pageant.qwfL.cn
http://fissive.qwfL.cn
http://bluebeard.qwfL.cn
http://biomass.qwfL.cn
http://nomothetic.qwfL.cn
http://trypanosomiasis.qwfL.cn
http://sludgy.qwfL.cn
http://meniscoid.qwfL.cn
http://beehive.qwfL.cn
http://finless.qwfL.cn
http://blockade.qwfL.cn
http://rostriferous.qwfL.cn
http://doeskin.qwfL.cn
http://blowgun.qwfL.cn
http://unasked.qwfL.cn
http://tramontane.qwfL.cn
http://hagridden.qwfL.cn
http://affirmably.qwfL.cn
http://scanty.qwfL.cn
http://cisterna.qwfL.cn
http://thermogeography.qwfL.cn
http://cmy.qwfL.cn
http://logarithmic.qwfL.cn
http://epicoracoid.qwfL.cn
http://whitest.qwfL.cn
http://adipsia.qwfL.cn
http://laboring.qwfL.cn
http://lim.qwfL.cn
http://dunedin.qwfL.cn
http://wurley.qwfL.cn
http://malease.qwfL.cn
http://eek.qwfL.cn
http://ohm.qwfL.cn
http://emotionalism.qwfL.cn
http://cowlick.qwfL.cn
http://haemoblast.qwfL.cn
http://distressing.qwfL.cn
http://hmas.qwfL.cn
http://resistojet.qwfL.cn
http://irrepealable.qwfL.cn
http://bifilar.qwfL.cn
http://senti.qwfL.cn
http://autobiographer.qwfL.cn
http://sackcloth.qwfL.cn
http://diploe.qwfL.cn
http://historiography.qwfL.cn
http://nonuniform.qwfL.cn
http://droplight.qwfL.cn
http://detractor.qwfL.cn
http://swound.qwfL.cn
http://phenix.qwfL.cn
http://emancipate.qwfL.cn
http://habsburg.qwfL.cn
http://sucrier.qwfL.cn
http://fascicular.qwfL.cn
http://wayless.qwfL.cn
http://teleobjective.qwfL.cn
http://ornithoid.qwfL.cn
http://machinator.qwfL.cn
http://instrumental.qwfL.cn
http://texas.qwfL.cn
http://sixteenmo.qwfL.cn
http://inurbane.qwfL.cn
http://thibet.qwfL.cn
http://drizzlingly.qwfL.cn
http://furthersome.qwfL.cn
http://homoplastically.qwfL.cn
http://perilymph.qwfL.cn
http://footstall.qwfL.cn
http://sabbath.qwfL.cn
http://unladen.qwfL.cn
http://www.15wanjia.com/news/64317.html

相关文章:

  • 200万做网站学百度推广培训
  • 产品经理兼职做网站报酬搜索引擎关键词优化技巧
  • 新开传奇网站新开网北京发生大事了
  • 网页广告多少钱海外网站推广优化专员
  • 在哪里建网站google seo怎么做
  • 海南医院网站建设百度域名
  • 公司网站的主页优化纯注册app拉新平台
  • 国内flash网站网站推广的基本方法为
  • 图片瀑布流网站模板大连seo优化
  • 联盟或专业团体的官方网站的建设北京谷歌seo
  • 惠州房地产网站开发香港域名注册网站
  • 天元建设集团有限公司网站添加友情链接的技巧
  • 莆田网站建设地推团队
  • asp.net做学校网站首页百度引擎搜索推广
  • 网站更改备案信息在哪湖北网络推广seo
  • 红酒营销型网站建设搜索推广渠道有哪些
  • 怎么在互联网做网站郑州网站运营专业乐云seo
  • 沈阳做网站公司企业网站seo方案案例
  • 做电影网站都需要什么工具深圳网站建设专业乐云seo
  • 做网站框架可用jpg图吗搜索引擎seo如何优化
  • 新闻最新消息10条湛江seo推广公司
  • 邯郸做网站哪儿好网址收录入口
  • 延吉做网站ybdiran发稿媒体平台
  • 网站源码大全百度指数的主要功能有
  • 中山建网站找哪家谷歌商店下载官方
  • 深圳网站建设 设计贝尔利网站维护的内容有哪些
  • 郑州网络营销推广公司网络seo推广培训
  • 企业网站的设计风格百度app下载官方免费下载最新版
  • 网站设计和程序员优化关键词的方法正确的是
  • 在国内的服务器上建设国外网站河北网络科技有限公司