Write a basic keymap sanity checker utility
This commit is contained in:
18
upy-unix-stubs/machine/__init__.py
Normal file
18
upy-unix-stubs/machine/__init__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
class Anything:
|
||||
'''
|
||||
A stub class which will repr as a provided name
|
||||
'''
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def __repr__(self):
|
||||
return 'Anything<{}>'.format(self.name)
|
||||
|
||||
|
||||
class Passthrough:
|
||||
def __getattr__(self, attr):
|
||||
return Anything(attr)
|
||||
|
||||
|
||||
class Pin:
|
||||
board = Passthrough()
|
0
upy-unix-stubs/pyb/USB_HID.py
Normal file
0
upy-unix-stubs/pyb/USB_HID.py
Normal file
0
upy-unix-stubs/pyb/__init__.py
Normal file
0
upy-unix-stubs/pyb/__init__.py
Normal file
0
upy-unix-stubs/pyb/delay.py
Normal file
0
upy-unix-stubs/pyb/delay.py
Normal file
Reference in New Issue
Block a user