网站信息发布系统,如何做公众号微信推广,网站文件怎么做,深圳网络seo推广工具 #xff1a; puttyF429Discovery 开发板Notepad注意#xff1a;不知道为什么 其他的终端工具有问题#xff0c;推荐 putty 基本没有发现问题 putty 实时调试 使用putty 打开USB 虚拟串口#xff0c;我们打开可以使用help()方法寻求帮助输入help()如下所示 help()
Welc…工具 puttyF429Discovery 开发板Notepad注意不知道为什么 其他的终端工具有问题推荐 putty 基本没有发现问题 putty 实时调试 使用putty 打开USB 虚拟串口我们打开可以使用help()方法寻求帮助输入help()如下所示
help()
Welcome to MicroPython!For online help please visit http://micropython.org/help/.Quick overview of commands for the board:
pyb.info() -- print some general information
pyb.delay(n) -- wait for n milliseconds
pyb.millis() -- get number of milliseconds since hard reset
pyb.Switch() -- create a switch objectSwitch methods: (), callback(f)
pyb.LED(n) -- create an LED object for LED n (n1,2,3,4)LED methods: on(), off(), toggle(), intensity(n)
pyb.Pin(pin) -- get a pin, eg pyb.Pin(X1)
pyb.Pin(pin, m, [p]) -- get a pin and configure it for IO mode m, pull mode pPin methods: init(..), value([v]), high(), low()
pyb.ExtInt(pin, m, p, callback) -- create an external interrupt object
pyb.ADC(pin) -- make an analog object from a pinADC methods: read(), read_timed(buf, freq)
pyb.DAC(port) -- make a DAC objectDAC methods: triangle(freq), write(n), write_timed(buf, freq)
pyb.RTC() -- make an RTC object; methods: datetime([val])
pyb.rng() -- get a 30-bit hardware random number
pyb.Servo(n) -- create Servo object for servo n (n1,2,3,4)Servo methods: calibration(..), angle([x, [t]]), speed([x, [t]])
pyb.Accel() -- create an Accelerometer objectAccelerometer methods: x(), y(), z(), tilt(), filtered_xyz()Pins are numbered X1-X12, X17-X22, Y1-Y12, or by their MCU name
Pin IO modes are: pyb.Pin.IN, pyb.Pin.OUT_PP, pyb.Pin.OUT_OD
Pin pull modes are: pyb.Pin.PULL_NONE, pyb.Pin.PULL_UP, pyb.Pin.PULL_DOWN
Additional serial bus objects: pyb.I2C(n), pyb.SPI(n), pyb.UART(n)Control commands:
CTRL-A -- on a blank line, enter raw REPL mode
CTRL-B -- on a blank line, enter normal REPL mode
CTRL-C -- interrupt a running program
CTRL-D -- on a blank line, do a soft reset of the board
CTRL-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)上面就是所有的Micro Python 帮助文档。 输入下面的指令打开一个Led。 import pybled pyb.LED(1)led.on()led.off() MicroPython 脱机运行 脱机运行指离开电脑独立运行在插入USB的时候电脑多了一个磁盘不是Stlink V2.1我们打开这个磁盘里面有一个“main.py”文件。 打开这个文件可以在里面输入如下代码 import pyb
while true pyb.LED(1).on() pyb.delay(500) pyb.LED(1).off() pyb.delay(500) 保存“main.py”文件完成复位即可。 转载于:https://www.cnblogs.com/memorypro/p/9510845.html