Update epdconfig.py
This commit is contained in:
parent
0d59a1227e
commit
b6a218a8e7
1 changed files with 17 additions and 16 deletions
|
@ -151,6 +151,7 @@ class JetsonNano:
|
||||||
|
|
||||||
self.GPIO.cleanup([self.RST_PIN, self.DC_PIN, self.CS_PIN, self.BUSY_PIN])
|
self.GPIO.cleanup([self.RST_PIN, self.DC_PIN, self.CS_PIN, self.BUSY_PIN])
|
||||||
|
|
||||||
|
|
||||||
class SunriseX3:
|
class SunriseX3:
|
||||||
# Pin definition
|
# Pin definition
|
||||||
RST_PIN = 17
|
RST_PIN = 17
|
||||||
|
@ -212,6 +213,7 @@ class SunriseX3:
|
||||||
|
|
||||||
self.GPIO.cleanup([self.RST_PIN, self.DC_PIN, self.CS_PIN, self.BUSY_PIN])
|
self.GPIO.cleanup([self.RST_PIN, self.DC_PIN, self.CS_PIN, self.BUSY_PIN])
|
||||||
|
|
||||||
|
|
||||||
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 os.path.exists('/sys/bus/platform/drivers/gpio-x3'):
|
elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'):
|
||||||
|
@ -222,5 +224,4 @@ else:
|
||||||
for func in [x for x in dir(implementation) if not x.startswith('_')]:
|
for func in [x for x in dir(implementation) if not x.startswith('_')]:
|
||||||
setattr(sys.modules[__name__], func, getattr(implementation, func))
|
setattr(sys.modules[__name__], func, getattr(implementation, func))
|
||||||
|
|
||||||
|
|
||||||
### END OF FILE ###
|
### END OF FILE ###
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue