当前位置:网站首页>Epp+dis learning path (1) -- Hello world!
Epp+dis learning path (1) -- Hello world!
2022-07-07 12:11:00 【MakeMaker】
In the public, “ Ningzhong physics Innovation Laboratory ” Wrote a lot based on Mixly Introduction to , I feel that my ability to write code is also declining ...... Because the information technology selective examination in Zhejiang Province has already been taken phthon Programming the , So I thought if ESP32+Python+Phyphox The combination of the three ( abbreviation EPP Well ) Develop physical DIS Experimental words , That really can achieve the perfect integration of multiple courses . So we have the idea of developing elective courses based on these three , Try to finish this summer vacation , We can teach students in the club class next semester .
Most of the previous articles are written by my own previous experience , Then these are my learning paths , Although it will be a little python, But it's still very shallow , So I learned while writing .
ESP32 Upper python Strictly speaking, it should be called micropython, There are many software available , Let's choose a relatively simple software ——Thonny To write! .
python It is an interpretative high-level language ...... About the introduction of language, I went to Baidu . use python Here it is ESP32 The best thing about writing programs is that they are super fast ! Compared with Mixly About fast 100 times ! Nonsense , Get to the point :
One 、Thonny
Download the software first , You can baidu , Go to the official website , In this way, we can get to the latest , Of course, you can also use what I share .
link :https://pan.baidu.com/s/1BMrNs1Lz6HNciNFjFs7h-A?pwd=nbzx
Extraction code :nbzx
Install after download
A very clean and concise software . Then in order to give ESP32 Write program , Still have to give ESP32 Write support micropython The firmware of , You can use Baidu or my following :
link :https://pan.baidu.com/s/1S3iIFn6btyQ2L22N7345AQ?pwd=nbzx
Extraction code :nbzx
After downloading, it's a .bin The file of
Next, let's use Thonny to ESP32 To burn in new firmware :
Open the tool first - Set up - decoder , Pay attention to the choice above MicroPython(ESP),Port Choose yours ESP32 Corresponding COM mouth ( Of course, you have to insert ESP32), Then click on the bottom right corner Install......
Open it as follows , Again Port Is your ESP32 Corresponding COM mouth ,Firmware That's what I shared above .bin file . Then click Install .
about 100 Seconds later, the recording is finished . Then close and enter Thonny The main page :
Two 、Hello world!
Below the main page Shell There will be Python The dialog . Because it is a high-level language , It supports conversational programming , Let's say hello to new world first , stay Shell Enter print("Hello world!")
Then it outputs Hello world!
Be careful , At the moment ESP32 Output Hello world! Hardware players generally don't like this way of greeting , Our way of greeting is usually to light a light ! Here we go. ESP32 The lamp on board is on .
Enter :
import machine
pin = machine.Pin(2, machine.Pin.OUT)
pin.on()
Then click the button with a white arrow in the middle of the green circle , Then a dialog box will come out
Ask where you want to save the program , Of course MicroPython equipment
stay File name Input in main.py, Point determination .
And then in a second , The program is uploaded , Observe ESP32 Is the light on the light on !
After lighting the light, you should be able to understand ESP32 On Micropython The mechanism of operation , In fact, the program we want to run is named main.py And then upload it to ESP32 Just go up ,ESP32 It will run automatically as soon as it is powered on main Program .
边栏推荐
- 让数字管理好库存
- Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
- Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
- [extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
- 源代码防泄密中的技术区别再哪里
- zero-shot, one-shot和few-shot
- <No. 8> 1816. 截断句子 (简单)
- 《通信软件开发与应用》课程结业报告
- <No. 9> 1805. Number of different integers in the string (simple)
- Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本
猜你喜欢
Rationaldmis2022 advanced programming macro program
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes
powershell cs-UTF-16LE编码上线
idea 2021中文乱码
超标量处理器设计 姚永斌 第10章 指令提交 摘录
千人規模互聯網公司研發效能成功之路
zero-shot, one-shot和few-shot
即刻报名|飞桨黑客马拉松第三期盛夏登场,等你挑战
小红书微服务框架及治理等云原生业务架构演进案例
随机推荐
TypeScript 接口继承
Apache installation problem: configure: error: APR not found Please read the documentation
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
Zero shot, one shot and few shot
如何理解服装产业链及供应链
Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool
Rationaldmis2022 advanced programming macro program
2022年在启牛开华泰的账户安全吗?
[extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
源代码防泄密中的技术区别再哪里
How to connect 5V serial port to 3.3V MCU serial port?
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
What is high cohesion and low coupling?
人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
NGUI-UILabel
MATLAB实现Huffman编码译码含GUI界面
Flet教程之 16 Tabs 选项卡控件 基础入门(教程含源码)
千人規模互聯網公司研發效能成功之路
ENSP MPLS layer 3 dedicated line
Various uses of vim are very practical. I learned and summarized them in my work