Pyboard use the basic functions summary

Basic functions Quick View

1. Common Control

>>> Import PYB         # Import PYB package 
>>> pyb.delay (50)    # delay 50ms 
>>> pyb.udelay (50) # delay 50us 
>>> pyb.repl_uart (pyb.UART (1,9600) )   # specify REPL to a serial port, baud rate is 9600 
>>> pyb.millis ()        # runtime milliseconds after power returns 
4.95471 million 
>>> pyb.freq ()     # returns the frequency of the CPU and the bus 
(168 million, 168 million, 42 million, 84 million )    
 >>> pyb.freq (168 000 000)     # set the CPU frequency of 168MHz 
>>> pyb.wfi ()       # pause CPU, waiting for an interrupt wake 
>>> pyb.stop ()     # stop CPU, wait for external interrupt call

 

Guess you like

Origin www.cnblogs.com/iBoundary/p/11495199.html