diff --git a/OEB.db b/OEB.db deleted file mode 100644 index f941f38..0000000 Binary files a/OEB.db and /dev/null differ diff --git a/asv.db b/asv.db deleted file mode 100644 index e2841d9..0000000 Binary files a/asv.db and /dev/null differ diff --git a/boot.py b/boot.py new file mode 100644 index 0000000..9faaae5 --- /dev/null +++ b/boot.py @@ -0,0 +1,7 @@ +# boot.py -- run on boot-up +# can run arbitrary Python, but best to keep it minimal + +import pyb +#pyb.main('main.py') # main script to run after this one +#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device +#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse diff --git a/timeout.py b/timeout.py deleted file mode 100644 index 32f83d8..0000000 --- a/timeout.py +++ /dev/null @@ -1,26 +0,0 @@ -import errno -import os -import signal -import functools - -class TimeoutError(Exception): - pass - -def timeout(seconds=10, error_message=os.strerror(errno.ETIME)): - def decorator(func): - def _handle_timeout(signum, frame): - raise TimeoutError(error_message) - - @functools.wraps(func) - def wrapper(*args, **kwargs): - signal.signal(signal.SIGALRM, _handle_timeout) - signal.alarm(seconds) - try: - result = func(*args, **kwargs) - finally: - signal.alarm(0) - return result - - return wrapper - - return decorator diff --git a/verses b/verses deleted file mode 100644 index e69de29..0000000