PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
651B

  1. # -*- coding: utf-8 -*-
  2. # ------------------------------------------------------------------------------
  3. class Tester:
  4. def __init__(self, interface):
  5. self.interface = interface
  6. self.sent = None
  7. self.expected = None
  8. self.received = None
  9. def handleMidiInput(self, data):
  10. print('Recived data:', data)
  11. self.received = data
  12. def checkThru(self, message):
  13. self.interface.send(message)
  14. self.sent = message
  15. self.expected = message
  16. self.received = None
  17. while not self.received:
  18. pass
  19. return self.expected == self.received