pikapython/package/STM32F1/STM32F1.pyi
李昂 8e499bfea6
update package/STM32F1/STM32F1.pyi.
Signed-off-by: 李昂 <liang6516@outlook.com>
2023-02-28 03:27:36 +00:00

86 lines
1.2 KiB
Python

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 ADC(PikaStdDevice.ADC):
# override
def platformEnable():
pass
# override
def platformRead():
pass
class UART(PikaStdDevice.UART):
# override
def platformEnable():
pass
# override
def platformWrite():
pass
# override
def platformRead():
pass
class PWM(PikaStdDevice.PWM):
# override
def platformEnable():
pass
# override
def platformSetFrequency():
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
class lowLevel:
def readPin(pin: str) -> int:
pass