mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
rm init()
This commit is contained in:
parent
6726169ad9
commit
eac4b77272
@ -4,7 +4,6 @@ import machine
|
||||
time = machine.Time()
|
||||
adc1 = machine.ADC()
|
||||
|
||||
adc1.init()
|
||||
adc1.setPin('PA1')
|
||||
adc1.enable()
|
||||
|
||||
|
@ -5,7 +5,6 @@ mem = PikaStdLib.MemChecker()
|
||||
io1 = machine.GPIO()
|
||||
time = machine.Time()
|
||||
|
||||
io1.init()
|
||||
io1.setPin('PA8')
|
||||
io1.setMode('out')
|
||||
io1.enable()
|
||||
|
@ -3,7 +3,6 @@ import machine
|
||||
|
||||
time = machine.Time()
|
||||
uart = machine.UART()
|
||||
uart.init()
|
||||
uart.setId(1)
|
||||
uart.setBaudRate(115200)
|
||||
uart.enable()
|
||||
|
@ -2,7 +2,6 @@ from PikaObj import *
|
||||
import PikaStdLib
|
||||
import machine
|
||||
pin = machine.GPIO()
|
||||
pin.init()
|
||||
pin.setPin('PA0')
|
||||
pin.setMode('in')
|
||||
pin.setPull('down')
|
||||
|
Loading…
x
Reference in New Issue
Block a user