今天中午,收到圆通快递的信息和电话,想必是申请的开发版到了,就叫小Py吧,中午太忙了,所以现在才来论坛发贴。首先,先上图让大家看看吧
先来张远景,
近景,
焊好排针之后,
好了, 上电,第一就遇到了,驱动无法安装上,
先看看,不急,
选择手动更新驱动,定位到小Py的磁盘,然后下一步,哦列,装上了!
看图:
然后,接着就是开始烧写程序了
咦?好像也没有说怎么烧写程序嘛。。。。
有了,我就不翻译了
嘻嘻嘻
Now we are going to write our Python program, so open the main.py file in a text editor. On Windows you can use notepad, or any other editor. On Mac and Linux, use your favourite text editor. With the file open you will see it contains 1 line:
# main.py -- put your code here!
This line starts with a # character, which means that it is a comment. Such lines will not do anything, and are there for you to write notes about your program.
Let’s add 2 lines to this main.py file, to make it look like this:
# main.py -- put your code here!import pybpyb.LED(4).on()
The first line we wrote says that we want to use the pyb module. This module contains all the functions and classes to control the features of the pyboard.
The second line that we wrote turns the blue LED on: it first gets the LED class from the pybmodule, creates LED number 4 (the blue LED), and then turns it on.
2.4. Resetting the pyboardTo run this little script, you need to first save and close the main.py file, and then eject (or unmount) the pyboard USB drive. Do this like you would a normal USB flash drive.
When the drive is safely ejected/unmounted you can get to the fun part: press the RST switch on the pyboard to reset and run your script. The RST switch is the small black button just below the USB connector on the board, on the right edge.
When you press RST the green LED will flash quickly, and then the blue LED should turn on and stay on.
Congratulations! You have written and run your very first MicroPython program!
实验室管理大叔马上要来锁门了,回宿舍了,不然就走不了了。
明天再试试吧,
临走之前,下了一点资料,给大家分享分享。