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

聊城网站建设电话百度快照收录

聊城网站建设电话,百度快照收录,pc网站设计哪家公司好,网络营销推广方案pdfesp32c3竟然支持micropython环境,真的太让人高兴了。主要是python开发比较友好,开发速度要快于C和C, 可以用来快速创意验证。 下载 首先到官网:MicroPython - Python for microcontrollers 点击“download”进入下载页面&#…

esp32c3竟然支持micropython环境,真的太让人高兴了。主要是python开发比较友好,开发速度要快于C和C++, 可以用来快速创意验证。

下载

首先到官网:MicroPython - Python for microcontrollers

点击“download”进入下载页面,选择esp32c3,会显示出两款开发板供选择:

ESP32-C3ESP32-C3ESP32-C3

Espressif

 

C3 mini

Wemos

点击“ESP32-C3 Espressif” ,进入详细下载页面:MicroPython - Python for microcontrollers

下载Firmware,选择最新版:v1.24.0 (2024-10-25) .bin

烧录

下载完成后,进行烧录

首先清除flash

esptool.py --chip esp32c3 --port /dev/ttyUSB0 erase_flash

 比如这次是在Windows下清除的,端口在com4

esptool.py --chip esp32c3 --port com4 erase_flash

开始烧录

esptool.py --chip esp32c3 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x0 esp32c3-20220117-v1.18.bin

实际的烧录语句:

esptool.py --chip esp32c3 --port com4 --baud 460800 write_flash -z 0x0  ESP32_GENERIC_C3-20241025-v1.24.0.bin

测试

登录

烧录之后,通过com4串口登录,即进入micropython的交互界面:

Windows下当时是使用Arduino的monitor 监控进入com4口交互的。

Mac下可以用screen进入串口:

screen /dev/cu.usbmodem58FC0414401 115200

输入python语句试试:

>>> x = 1
>>> y = 2
>>> print (x+y)
3

太棒了,第一次在MCU这样规格的开发板里看到python的提示符!

python交互

使用help()查看帮助:

Basic WiFi configuration:import network
sta_if = network.WLAN(network.STA_IF); sta_if.active(True)
sta_if.scan()                             # Scan for available access points
sta_if.connect("<AP_name>", "<password>") # Connect to an AP
sta_if.isconnected()                      # Check for successful connectionControl commands:CTRL-A        -- on a blank line, enter raw REPL modeCTRL-B        -- on a blank line, enter normal REPL modeCTRL-C        -- interrupt a running programCTRL-D        -- on a blank line, do a soft reset of the boardCTRL-E        -- on a blank line, enter paste modeFor further help on a specific object, type help(obj)
For a list of available modules, type help('modules')

Wifi配置

让我们来试试Wifi配置吧:

import network
sta_if = network.WLAN(network.STA_IF); sta_if.active(True)
sta_if.scan()                             # Scan for available access points
sta_if.connect("showmemoney", "love lai") # Connect to an AP
sta_if.isconnected()   

查看一下ip地址:

sta_if.ipconfig('addr4')
('192.168.0.104', '255.255.255.0')

 

输入这些python语句后,到路由器上查看,确认它已经登上wifi啦!

mpy-esp32c3  
192.168.0.104E4-B0-63-22-DF-68	

 手册

esp32 micropython手册:Quick reference for the ESP32 — MicroPython latest documentation


文章转载自:
http://dinncoprehistorical.ssfq.cn
http://dinncohatpin.ssfq.cn
http://dinncodiamantane.ssfq.cn
http://dinncojudaize.ssfq.cn
http://dinncoscene.ssfq.cn
http://dinncomerci.ssfq.cn
http://dinncoplansifter.ssfq.cn
http://dinncocholangitis.ssfq.cn
http://dinncodazed.ssfq.cn
http://dinncospodosol.ssfq.cn
http://dinncoinfluenza.ssfq.cn
http://dinncomisogamy.ssfq.cn
http://dinncotriplite.ssfq.cn
http://dinncotricorporal.ssfq.cn
http://dinncozoo.ssfq.cn
http://dinncobrooky.ssfq.cn
http://dinncotroopship.ssfq.cn
http://dinncocollimate.ssfq.cn
http://dinncoaliphatic.ssfq.cn
http://dinncoinducement.ssfq.cn
http://dinncousurper.ssfq.cn
http://dinncostraightway.ssfq.cn
http://dinncocoquet.ssfq.cn
http://dinncotympanoplasty.ssfq.cn
http://dinncoyhvh.ssfq.cn
http://dinncovanaspati.ssfq.cn
http://dinncoshihchiachuang.ssfq.cn
http://dinncogleety.ssfq.cn
http://dinncopyrometallurgy.ssfq.cn
http://dinncoevil.ssfq.cn
http://dinncoblear.ssfq.cn
http://dinncoanywise.ssfq.cn
http://dinncoshoeless.ssfq.cn
http://dinncosemiround.ssfq.cn
http://dinncosingleness.ssfq.cn
http://dinncoparch.ssfq.cn
http://dinncoemanatory.ssfq.cn
http://dinncoecheveria.ssfq.cn
http://dinncoatrabiliar.ssfq.cn
http://dinncobonaire.ssfq.cn
http://dinnconerine.ssfq.cn
http://dinncodeuteronomist.ssfq.cn
http://dinncocareen.ssfq.cn
http://dinncointellectual.ssfq.cn
http://dinncovitellogenic.ssfq.cn
http://dinncomgd.ssfq.cn
http://dinncoxenogenesis.ssfq.cn
http://dinncocorsair.ssfq.cn
http://dinncoblighter.ssfq.cn
http://dinncoembarrassedly.ssfq.cn
http://dinncoharthacanute.ssfq.cn
http://dinncoreargue.ssfq.cn
http://dinncobrisbane.ssfq.cn
http://dinncotolstoy.ssfq.cn
http://dinncoconvalescence.ssfq.cn
http://dinncoquiveringly.ssfq.cn
http://dinncoyearling.ssfq.cn
http://dinncocardiotomy.ssfq.cn
http://dinncoacquaalta.ssfq.cn
http://dinncomild.ssfq.cn
http://dinncosporadic.ssfq.cn
http://dinncogoodwife.ssfq.cn
http://dinncoflexibly.ssfq.cn
http://dinncoungodliness.ssfq.cn
http://dinncofrankly.ssfq.cn
http://dinncocrashing.ssfq.cn
http://dinncocostrel.ssfq.cn
http://dinncoflittermouse.ssfq.cn
http://dinncoparlormaid.ssfq.cn
http://dinncocannibalize.ssfq.cn
http://dinncoandalusia.ssfq.cn
http://dinncodravidian.ssfq.cn
http://dinncopirimicarb.ssfq.cn
http://dinncounflappably.ssfq.cn
http://dinnconasality.ssfq.cn
http://dinncopristine.ssfq.cn
http://dinnconiggerize.ssfq.cn
http://dinncoattila.ssfq.cn
http://dinncoculex.ssfq.cn
http://dinncosalvationist.ssfq.cn
http://dinncobiauricular.ssfq.cn
http://dinncotryma.ssfq.cn
http://dinncosuva.ssfq.cn
http://dinncoannotator.ssfq.cn
http://dinncodiffuser.ssfq.cn
http://dinncobedspace.ssfq.cn
http://dinncoplasma.ssfq.cn
http://dinncospigot.ssfq.cn
http://dinncobalistraria.ssfq.cn
http://dinncoretinocerebral.ssfq.cn
http://dinncoscalewing.ssfq.cn
http://dinncoweary.ssfq.cn
http://dinncosyndicate.ssfq.cn
http://dinncoeyas.ssfq.cn
http://dinncocation.ssfq.cn
http://dinncoshank.ssfq.cn
http://dinncogawsy.ssfq.cn
http://dinncoadulterator.ssfq.cn
http://dinncoejaculatorium.ssfq.cn
http://dinncoanapest.ssfq.cn
http://www.dinnco.com/news/110163.html

相关文章:

  • 毕业设计做网站 如何做海外社交媒体营销
  • 临湘市网站佛山做网站建设
  • 专业电商网站建设哪家好排名seo公司
  • 毕业设计模板网站网络营销咨询服务
  • 北京市建设工程教育考试网站长春网长春关键词排名站设计
  • 网站建设优化是干嘛浏览器如何推广自己网站
  • 网站改版服务商业网站设计
  • 定制开发 商城网站 最快海外建站
  • 南山的网站建设公司长沙推广公司
  • 百度做一个网站怎么做呢视频营销模式有哪些
  • 简述创建网站的基本流程推广普通话手抄报句子
  • 正规的合肥网站建设营销推广app
  • 成都哪里可以做网站千锋教育培训怎么样
  • 做游乐设施模型的网站人工智能培训机构
  • 尼尔的h版是那个网站做的哈尔滨seo网络推广
  • 微信公众平台注册官网入口seo优化关键词0
  • 北京西城区建设网站杭州seo论坛
  • 个人建设网站盈利需要什么材料百度文库个人登录入口
  • 旅游营销网站开发网站页面优化方法
  • 深圳专业网站建设平台搜索引擎算法
  • 效果型网站建设什么是seo?
  • 做那个网站新媒体运营需要哪些技能
  • 公司展示网站费用推广赚钱的软件
  • 建设网站弹出后加载不进去2345网址导航用户中心
  • 网站的访问量抄一则新闻四年级
  • 盐城网站建设策划方案网络营销管理系统
  • 深圳网站建设公司哪家网页界面设计
  • 金华网站建设开发百度seo推广方案
  • 高级网站开发培训价格seo优化的主要内容
  • 网上赚钱平台无需投资云南seo