def version(self): print (mraa.getVersion()) print (mraa.getPlatformName()) print (mraa.getPlatformType())
def __init__(self): self.x = 0 if mraa.getPlatformType() == 1: self.x = mraa.Gpio(13) if mraa.getPlatformType() == 2: self.x = mraa.Gpio(44)