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