Stub pyb.hid_keyboard for tests

This commit is contained in:
Josh Klar
2018-09-30 16:32:20 -07:00
parent b7b1866ac9
commit 1fcff6cb8c

View File

@@ -0,0 +1,14 @@
try:
from collections import namedtuple
except ImportError:
from ucollections import namedtuple
HIDMode = namedtuple('HIDMode', (
'subclass',
'protocol',
'max_packet_length',
'polling_interval',
'report_descriptor',
))
hid_keyboard = HIDMode(0, 0, 0, 0, bytearray(0))