Added Rock64 to implementation
This commit is contained in:
parent
db0627b65f
commit
dcec2c1aca
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ import os
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import platform
|
||||||
|
|
||||||
|
|
||||||
class Rock64:
|
class Rock64:
|
||||||
|
|
@ -190,6 +191,8 @@ class JetsonNano:
|
||||||
|
|
||||||
if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'):
|
if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'):
|
||||||
implementation = RaspberryPi()
|
implementation = RaspberryPi()
|
||||||
|
elif platform.machine() == 'aarch64': # Rock64
|
||||||
|
implementation = Rock64()
|
||||||
else:
|
else:
|
||||||
implementation = JetsonNano()
|
implementation = JetsonNano()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue