实例介绍
esp32官方提供了网页版编程指南,但不方便查阅,于此上传一份pdf版
Contents 1 Get started 1.1 Guides 1.2 Setup Toolchain 13 1. 3 Get ESP-IDF 1. 4 Setup Path to ESP-IDF 21 1.5 Start a Project 22 1. 6 Connect 22 onfigure 1. 8 Build and flash ··.· 1. 9 Monitor 24 1.10 Related documents 24 2 API Reference 39 2.1 Wi-Fi API 39 2.2 Bluetooth aPl .56 2.3 Ethernet APl 142 2.4 Peripherals API .149 2.5 Protocols aPl 278 2.6 Storage aPi 286 2.7 System API 325 3 ESP32 Hardware Reference 355 3.1 ESP32 Modules and Boards 355 4 API Guides 357 4.1 General Notes About ESP-IDF Programming 357 4.2 Build System ...,.360 4.3 Debugging 372 4.4 ESP32 Core Dump 375 4.5 Partition tables 377 4.6 Flash Encryption·· .380 4.7 Secure b 388 4.8 Deep Sleep Wake Stubs 394 4.9 ULP coprocessor programming ..... ·.· 5 4.10 Unit Testing in ESP32 418 4. 11 Application Level Tracing library ......419 4.12 ESP32 ROM console .426 5 Contributions Guide 429 5.1 How to Contribute 429 5.2 Before Contributing 429 5.3 Pull Request Process 430 5.4 Legal part 430 5.5 Related Documents 430 6 Resources 45 7 Copyrights and Licenses 447 7.1 Software Copyrights 7.2 ROM Source Code Copyrights 448 7. 3 Xtensa libhaI MiT license 448 7.4 Tiny Basic Plus MIT License 448 7.5 TIpg Dec License 449 8 About 451 Read the docs template documentation Release v 3.0-dev-168-gd515eea This is the documentation for Espressif loT Development framework(esp-idf). ESP-IDF is the official development framework for the esP32 chip Get Started API Reference H/W Reference API GuidesContribute esources Contents Read the Docs Template Documentation, Release v3.0-dev-168-gd515eea Contents CHAPTER Get started To develop applications for ESP32 you need PC loaded with either Windows, Linux or Mac operating system Toolchain to build the Application for ESP32 ESP-IDF that essentially contains API for ESP32 and scripts to operate the toolchain A text editor to write programs(Projects) in C, e.g. Eclipse eSP32 board itself Preparation of development environment consists of three steps 1. Setup of Toolchain 2. Getting of ESP-IDF from GitHub Installation and configuration of Eclipse You may skip the last step, if you prefer to use different editor Having environment set up, you are ready to start the most interesting part- the application development. This process may be summarized in four steps 1. Configuration of a Project and writing the code 2. Compilation of the Project and linking it to build an Application 3. Flashing(uploading)of the Application to ESP32 4. Monitoring/debugging of the Application See instructions below that will walk you through these steps Guides If you have one of ESP32 development boards listed below, click on provided links to get you up and running 3 Read the Docs Template Documentation, Release v3.0-dev-168-gd515eea “““““““““““““““““““““““““ make/Ec ipse ESP-DF Toolchain Project Application BUILD UPLOAD PC Fig. II: Development of applications for ESP32 Chapter 1. Get Started Read the docs template documentation Release v 3.0-dev-168-gd515eea ESP32-DevkKitc Getting Started Guide This user guide shows how to get started with EsP32-Dev Kitc development board What You Need ·1×ESP2- Dev Kitc board ·1×USBA/ mini usb b cable ·1× PC loaded with Windows. Linux or mac o/S Overview ESP32-DevKitC is a small-sized ESP32-based development board produced by Espressif. Most of the I/o pins are broken out to the pin headers on both sides for easy interfacing. Developers can connect these pins to peripherals as needed. Standard headers also make development easy and convenient when using a breadboard unctional Description The following list and figure below describe key components, interfaces and controls of EsP32-Dev Kitc board ESP-WROOM-32 Standard ESP-WROOM-32 module soldered to the esP32-Dey Kitc board EN Reset button: pressing this button resets the system Boot Download button: holding down the boot button and pressing the en button initiates the firmware download mode. Then user can download firm ware through the serial port USB USB interface. It functions as the power supply for the board and the communication interface between PC and ESP-WROOM-32 1/0 Most of the pins on the EsP-WROOM-32 are broken out. to the pin headers on the ESP32 to enable multiple functions such as PWM,ADC, DAC, I 2C, I2S, SPl,ete e board. Users can program Start Application Development Before powering up the esP32-Dev KitC, please make sure that the board has been received in good condition with no obvious signs of damage To start development of applications, proceed to section Get Started, that will walk you through the following steps Setup Toolchain in your PC to develop applications for ESP32 in C language Connect the module to the pc and verify if it is accessible Build and Flash an example application to the ESP32 Monitor instantly what the application is doing Related Documents ESP32-Dev KitC schematic(PDF ESP32 Datasheet (PDF) ESP-WROOM-32 Datasheet(PDF) 1.1. Guides Read the Docs Template Documentation, Release v3.0-dev-168-gd515eea ESP-WROOM-32 0000000000000000000 O IN9 001OOXM IZOI- ON9 6101 8LOI SOI LIDI SIOI *01 00I LCI S0l lOS 00S Xp 昌器昌昌兽昌昌昌昌 R/ RsNa Boot R20R国司 15 USB 歌 o mamr 8 e22Rc巴 EN Y3 EN SYP SYN|0341035阳032103310251026027014012cN010ts02s03c5 0000000000000o0000 ∥O Fig 1.2: ESP32-DeyKitc board layout ESP-WROVER-KIT Getting Started Guide This user guide shows how to get started with ESP-WROVER-KIT development board What You Need .I X ESP-WROVER-KIT board ·1×USBA/ mini usb b cable ·1× PC loaded with windows, Linux or mac o/S The board This section describes functionality of ESP-WROVER-KIT board and configuration options. If you like to start using it now, go directly to section Start Application Development Overview The ESP-WROVER-KIT is a development board produced by Espressif built around ESP32. This board is compatible with ESP32 modules, including the ESP-WROOM-32 and ESP32-WROVER. The ESP-WROVER-KIT features sup port for an LCD and MicroSD card. The I/o pins have been broken out from the esP32 module for easy extension The board carries an advanced multi-protocol USB bridge(the FTDI FT2232HL), enabling developers to use JTAG directly to debug the esP32 through the USB interface. The development board makes secondary development easy and cost-effective Chapter 1. Get Started 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论