99 lines
1.4 KiB
Python
Raw Normal View History

2021-10-28 16:05:35 +08:00
from PikaObj import *
2021-10-01 20:00:15 +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():
2021-10-01 20:00:15 +08:00
pass
2021-10-25 20:16:08 +08:00
# override
def platformRead():
2021-10-25 20:16:08 +08:00
pass
2021-10-01 20:00:15 +08:00
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():
2021-10-01 20:00:15 +08:00
pass
# override
def platformRead():
2021-10-01 20:00:15 +08:00
pass
class UART(PikaStdDevice.UART):
# override
def platformEnable():
2021-10-01 20:00:15 +08:00
pass
# override
def platformWrite():
2021-10-01 20:00:15 +08:00
pass
# override
def platformRead():
2021-10-01 20:00:15 +08:00
pass
2021-10-01 20:00:15 +08:00
class PWM(PikaStdDevice.PWM):
# override
def platformEnable():
2021-10-01 20:00:15 +08:00
pass
# override
def platformSetFrequency():
2021-10-01 20:00:15 +08:00
pass
# override
def platformSetDuty():
pass
class IIC(PikaStdDevice.IIC):
SCL = GPIO()
SDA = GPIO()
# override
def platformEnable():
pass
# override
def platformWrite():
pass
# override
def platformRead():
pass
2021-10-28 16:05:35 +08:00
class lowLevel(TinyObj):
def readPin(pin: str) -> int:
pass