Skip to content

Commit f9a1017

Browse files
committed
Added error message if library run on old uf2 files
1 parent df514c0 commit f9a1017

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

XRPLib/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""
2+
THIS LIBRARY WAS MADE FOR THE SPARKFUN XRP CONTROL BOARD.
3+
PLEASE USE THE ASSOCIATED MICROPYTHON UF2 FILE.
4+
"""
5+
6+
import sys
7+
if not "XRP" in sys.implementation._machine:
8+
raise NotImplementedError("This library does not support your version of MicroPython. "
9+
+ "Please update your UF2 File for the Beta XRP Controller here: "
10+
+ "https://github.com/Open-STEM/XRP_MicroPython/releases/tag/v2.0.0")

0 commit comments

Comments
 (0)