Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit 7436551

Browse files
authored
Added Detection of Jetson Nano Board
1 parent 2e84c14 commit 7436551

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Adafruit_GPIO/Platform.py

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
RASPBERRY_PI = 1
2727
BEAGLEBONE_BLACK = 2
2828
MINNOWBOARD = 3
29+
JETSON_NANO = 4
2930

3031
def platform_detect():
3132
"""Detect if running on the Raspberry Pi or Beaglebone Black and return the
@@ -45,6 +46,8 @@ def platform_detect():
4546
return BEAGLEBONE_BLACK
4647
elif plat.lower().find('armv7l-with-glibc2.4') > -1:
4748
return BEAGLEBONE_BLACK
49+
elif plat.lower().find('tegra-aarch64-with-ubuntu') > -1:
50+
return JETSON_NANO
4851

4952
# Handle Minnowboard
5053
# Assumption is that mraa is installed

0 commit comments

Comments
 (0)