mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
84 lines
1.2 KiB
Python
84 lines
1.2 KiB
Python
#api
|
|
from PikaObj import *
|
|
import PikaStdDevice
|
|
import PikaStdTask
|
|
|
|
|
|
class GPIO(PikaStdDevice.GPIO): ...
|
|
|
|
|
|
class Time(PikaStdDevice.Time):
|
|
# override
|
|
def sleep_s(self, s: int):
|
|
pass
|
|
|
|
# override
|
|
def sleep_ms(self, ms: int):
|
|
pass
|
|
|
|
|
|
class ADC(PikaStdDevice.ADC):
|
|
# override
|
|
def platformEnable(self):
|
|
pass
|
|
|
|
# override
|
|
def platformRead(self):
|
|
pass
|
|
|
|
|
|
class UART(PikaStdDevice.UART):
|
|
# override
|
|
def platformEnable(self):
|
|
pass
|
|
|
|
# override
|
|
def platformWrite(self):
|
|
pass
|
|
|
|
# override
|
|
def platformRead(self):
|
|
pass
|
|
|
|
|
|
class PWM(PikaStdDevice.PWM):
|
|
# override
|
|
def platformEnable(self):
|
|
pass
|
|
|
|
# override
|
|
def platformSetFrequency(self):
|
|
pass
|
|
|
|
# override
|
|
def platformSetDuty(self):
|
|
pass
|
|
|
|
|
|
class IIC(PikaStdDevice.IIC):
|
|
SCL = GPIO()
|
|
SDA = GPIO()
|
|
# override
|
|
|
|
def platformEnable(self):
|
|
pass
|
|
|
|
# override
|
|
def platformWrite(self):
|
|
pass
|
|
|
|
# override
|
|
def platformRead(self):
|
|
pass
|
|
|
|
|
|
class lowLevel(TinyObj):
|
|
def readPin(self, pin: str) -> int:
|
|
pass
|
|
|
|
|
|
class Task(PikaStdTask.Task):
|
|
# override
|
|
def platformGetTick(self):
|
|
pass
|