pikapython/package/STM32F1/STM32F1.pyi

100 lines
1.4 KiB
Python
Raw Normal View History

2022-04-26 21:38:15 +08:00
#api
2021-12-05 22:13:32 +08:00
from PikaObj import *
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():
pass
# override
def platformRead():
pass
class Time(PikaStdDevice.Time):
# override
def sleep_s(s: int):
pass
# override
def sleep_ms(ms: int):
pass
2021-12-11 20:12:20 +08:00
class ADC(PikaStdDevice.ADC):
# override
def platformEnable():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformRead():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
class UART(PikaStdDevice.UART):
# override
def platformEnable():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformWrite():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformRead():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
class PWM(PikaStdDevice.PWM):
# override
def platformEnable():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformSetFrequency():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformSetDuty():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
class IIC(PikaStdDevice.IIC):
SCL = GPIO()
SDA = GPIO()
# override
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
def platformEnable():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformWrite():
pass
2021-12-05 22:13:32 +08:00
2021-12-11 20:12:20 +08:00
# override
def platformRead():
pass
2021-12-05 22:13:32 +08:00
class lowLevel(TinyObj):
def readPin(pin: str) -> int:
pass