MicroPython yes Python 3 Simple and efficient implementation of programming language , These include Python A small part of the standard library , And optimized , It can run in microcontroller and restricted environment .
Can be in 256k Code space and 16k Of RAM Internal installation and operation .
Official website :https://micropython.org/
Thonny, yes MicroPython The development environment used .
Download url :https://thonny.org/
stay Raspberry Pi Pico Found on the BOOTSEL Button .
Hold down BOOTSEL Button , At the same time micro USB Connect the other end of the cable to the computer . This will your Raspberry Pi Pico in USB High capacity storage device .
stay Thonny The lower right corner of the window , You will see the currently used Python edition . single click Python Version and select “MicroPython (Raspberry Pi Pico)”:
A dialog box will pop up , In your Raspberry Pi Pico Install the latest version of MicroPython The firmware .
single click install Button to copy the firmware to your Raspberry Pi Pico.
The first method is very convenient , But you need an extranet . If there are no conditions, you can choose method 2 .
stay Raspberry Pi Pico Found on the BOOTSEL Button .
Hold down BOOTSEL Button , At the same time micro USB Connect the other end of the cable to the computer . This will your Raspberry Pi Pico in USB High capacity storage device .
Go to the official website to download firmware , Then towed to RPI-RP2 Inside . Then insert it again .
You can use this link :https://micropython.org/download/rp2-pico/rp2-pico-latest.uf2 download
Or this link :https://micropython.org/resources/firmware/rp2-pico-20210902-v1.17.uf2 download
MicroPython Added hardware specific modules , for example machine
It can be used for Raspberry Pi Pico Programming .
Let's create a machine.Pin
And onboard LED The corresponding object , have access to GPIO Pin 25 Access the object .
If you will LED Is set to 1
, It will light up .
Enter the following code , Make sure to click... After each line Enter.
from machine import Pin
led = Pin(25, Pin.OUT)
led.value(1)
Type the code to set the value to 0
To close LED.
led.value(0)
More reference :
Raspberry pie PICO Official development documents :https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico
Experimental part According to the system call table , Select a system call . I chose mkdir This system call , Its system call number is 39, namely 0x27 because mkdir The prototype of the function is int mkdir (const char *filename, ...
The experimenter : Jiang Jun ID:fuchen1994 Description of the experiment : Select a system call (13 System call time With the exception of ), For a list of system calls, see http://codelab.shiyanlou.com/xref/linux-3 ...
system call : Library functions encapsulate system calls , Dealing with system calls through library functions User mode : Low level execution state , The scope of control of the code will be limited . Kernel mode : High executive level , Code portability privilege directive , Access any physical address Why is it graded : If all the privileges ...
Kernel knowledge is the first 12 speak ,SSDT surface . In two ways from user mode to system mode . I. 1 IDT analysis . We know .IDT All kinds of interrupt information are stored in the table . For example, when we call int 3 When , It will call IDT The third item in the table . The function ...
http://blog.51cto.com/renzhiyuan/1882599 Today we are going to talk about yum There are two ways to upgrade or upgrade the kernel : upgrade : Like playing kvm,docker Wait for virtualization ,centos The kernel is upgraded ...
Chen qiaoran's original works Reprint please indicate the source <Linux Kernel analysis >MOOC Course http://mooc.study.163.com/course/USTC-1000029000 The experiment purpose : Use library functions A ...
( One )Java The two most common ways of thread cooperation in : (1) utilize Object Of wait().notify() and notifyAll() The method and synchronized (2) Use Condition.Reentra ...
By calling C The library function of a language is similar to that in C The code uses two ways of inline assembly to use the same system call to analyze the working mechanism of system call Preface explains This is Netease cloud class Linux Homework for the fourth week of kernel analysis , I'll call C The library function of a language is similar to that in C In the code ...
[ Operating system knowledge reserve , Process related concepts , Two ways to start a process . process Queue Introduce ] Operating system knowledge review Why have an operating system . Programmers can't understand all the details of hardware operation , It's very tedious to manage and optimize these hardware ...
/** * PlaceHolder Components * $(input).placeholder({ * word: // @string Tip text * color: // @string text color * evtT ...
Speaking of sql The parameterization of , Are you kidding me? , because sql The engine is really a very powerful system , We usually add cache when we do the system , I think if there's no cache , There won't be anything Big websites can run , Moreover, large companies usually pay more attention to one thing ...
DataManager Manage in-game data , Of course, most of the properties and methods in this class are Public Function list
1019. Digital black hole (20) The time limit 100 ms Memory limit 65536 kB Code length limit 8000 B The procedure of judging questions Standard author CHEN, Yue Given any number that is not exactly the same 4 position ...
Maintain differential sequence Obviously, we need to make the post of the difference sequence n-1 Position as 0 For the original interval operation Only one point or two points are needed It's turned into For differential sequences, but with a number + or - Or a +1 At the same time - ans1=max(sum1,su ...
I just went to work and found that some services couldn't run , Enter the server to check the reason : The first part : One ,#top Because I was just kill Drop once ,kill It will start automatically after the meeting , Before yam Process accounting cpu yes 200% Two ,# vim /etc/r ...
[poj P2482] Stars in Your Window Time Limit: 1000MS Memory Limit: 65536K Description Fleeting time ...
Handwriting copy Let's have an official explanation First of all categoryBitMask /** A mask that defines which category the physical rigid body belongs to . Each physical rigid body in a scene can be assigned to reach 32 Different categories ( Parameters int bitmas ...
design sketch html Code // Play button <div id="playBtn" class="circle" color: rgba(0, 0, 0, 0.32);margin-bottom: 8px;">1. package reflectionZ; import java.lang.reflect.Method; public class Treflection06 { public static ...
Space Ant Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 3924 Accepted: 2457 Descrip ...