graduateDesign 2a87ed7595 add package
2021-10-01 20:00:15 +08:00

71 lines
1.2 KiB
Python

from typing import overload
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
class ADC(PikaStdDevice.ADC):
# override
def platformEnable(pin: str):
pass
# override
def platformRead(pin: str) -> float:
pass
class UART(PikaStdDevice.UART):
# override
def platformEnable(id: int, baudRate: int):
pass
# override
def platformWrite(id: int, data: str):
pass
# override
def platformRead(id: int, length: int) -> str:
pass
class PWM(PikaStdDevice.PWM):
# override
def platformEnable(pin: str, freq: int, duty: float):
pass
# override
def platformSetFrequency(pin: str, freq: int):
pass
# override
def platformSetDuty(pin: str, duty: float):
pass