2022-04-26 21:38:15 +08:00
|
|
|
#api
|
2022-03-26 20:46:22 +08:00
|
|
|
from PikaObj import *
|
|
|
|
import PikaStdDevice
|
|
|
|
import PikaStdTask
|
|
|
|
|
|
|
|
|
|
|
|
class GPIO(PikaStdDevice.GPIO):
|
|
|
|
# override
|
|
|
|
def platformHigh():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformLow():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformEnable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformDisable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformSetMode():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformRead():
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Time(PikaStdDevice.Time):
|
|
|
|
# override
|
|
|
|
def sleep_s(s: int):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def sleep_ms(ms: int):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ADC(PikaStdDevice.ADC):
|
|
|
|
# override
|
|
|
|
def platformEnable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformRead():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformDisable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class UART(PikaStdDevice.UART):
|
|
|
|
# override
|
|
|
|
def platformEnable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformWrite():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformRead():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformDisable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class IIC(PikaStdDevice.IIC):
|
|
|
|
# override
|
|
|
|
def platformEnable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformDisable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformWrite():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformRead():
|
|
|
|
pass
|
|
|
|
|