mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 14:07:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
try:
|
||||
import RPi.GPIO # noqa
|
||||
except RuntimeError as e:
|
||||
assert(str(e) == 'This module can only be run on a Raspberry Pi!')
|
||||
else:
|
||||
raise RuntimeError('Import succeeded when it should not have!')
|
||||
Reference in New Issue
Block a user