1 Star 0 Fork 1

李昂 / bl_mcu_sdk

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
machine.py 537 Bytes
Copy Edit Raw Blame History
import PikaStdDevice
class UART(PikaStdDevice.UART):
pass
class GPIO(PikaStdDevice.GPIO):
pass
class ADC(PikaStdDevice.ADC):
pass
class DAC(PikaStdDevice.DAC):
pass
class LED(GPIO):
pin: str = None
def __init__(self, id: int):
super().__init__()
if id == 0:
self.pin = 'P27'
elif id == 1:
self.pin = 'P28'
self.setMode('out')
self.enable()
self.high()
def on(self):
self.low()
def off(self):
self.high()
1
https://gitee.com/Lyon1998/bl_mcu_sdk.git
git@gitee.com:Lyon1998/bl_mcu_sdk.git
Lyon1998
bl_mcu_sdk
bl_mcu_sdk
master

Search