386 return self.__interface |
386 return self.__interface |
387 |
387 |
388 def isMicrobit(self): |
388 def isMicrobit(self): |
389 """ |
389 """ |
390 Public method to check, if the connected/selected device is a |
390 Public method to check, if the connected/selected device is a |
391 BBC micro:bit. |
391 BBC micro:bit or Calliope mini. |
392 |
392 |
393 @return flag indicating a micro:bit device |
393 @return flag indicating a micro:bit device |
394 rtype bool |
394 rtype bool |
395 """ |
395 """ |
396 if self.__device and "micro:bit" in self.__device.deviceName(): |
396 if self.__device and ( |
|
397 "micro:bit" in self.__device.deviceName() or |
|
398 "Calliope" in self.__device.deviceName() |
|
399 ): |
397 return True |
400 return True |
398 |
401 |
399 return False |
402 return False |
400 |
403 |
401 @pyqtSlot(int) |
404 @pyqtSlot(int) |