2021-09-08 21:25:52 +08:00
|
|
|
import PikaStdDevice
|
|
|
|
|
|
|
|
|
|
|
|
class GPIO(PikaStdDevice.GPIO):
|
|
|
|
# override
|
|
|
|
def platformHigh():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformLow():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformEnable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformDisable():
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformSetMode(mode: str):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Time(PikaStdDevice.Time):
|
|
|
|
# override
|
|
|
|
def sleep_s(s: int):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def sleep_ms(ms: int):
|
|
|
|
pass
|
2021-09-09 08:40:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
class ADC(PikaStdDevice.ADC):
|
|
|
|
# override
|
|
|
|
def platformEnable(pin: str):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# override
|
|
|
|
def platformRead(pin: str) -> float:
|
|
|
|
pass
|
2021-09-10 17:49:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
class UART(PikaStdDevice.UART):
|
2021-09-11 00:08:40 +08:00
|
|
|
# override
|
2021-09-10 17:49:56 +08:00
|
|
|
def platformEnable(id: int, baudRate: int):
|
|
|
|
pass
|
|
|
|
|
2021-09-11 00:08:40 +08:00
|
|
|
# override
|
|
|
|
def platformWrite(id: int, data: str):
|
2021-09-10 17:49:56 +08:00
|
|
|
pass
|
|
|
|
|
2021-09-11 00:08:40 +08:00
|
|
|
# override
|
|
|
|
def platformRead(id: int, length: int) -> str:
|
2021-09-10 17:49:56 +08:00
|
|
|
pass
|