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

Commit a92a23d

Browse files
authored
Merge pull request #105 from gizmohd/master
Adding support for the Nvidia Jetson Nano Board
2 parents 2e84c14 + 7b8e666 commit a92a23d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Adafruit_GPIO/GPIO.py

+3
Original file line numberDiff line numberDiff line change
@@ -422,5 +422,8 @@ def get_platform_gpio(**keywords):
422422
elif plat == Platform.MINNOWBOARD:
423423
import mraa
424424
return AdafruitMinnowAdapter(mraa, **keywords)
425+
elif plat == Platform.JETSON_NANO:
426+
import Jetson.GPIO
427+
return RPiGPIOAdapter(Jetson.GPIO, **keywords)
425428
elif plat == Platform.UNKNOWN:
426429
raise RuntimeError('Could not determine platform.')

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)