Stub pyb.hid_keyboard for tests
This commit is contained in:
parent
b7b1866ac9
commit
1fcff6cb8c
@ -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))
|
Loading…
x
Reference in New Issue
Block a user