only cleanup the gpios in use instead of all gpios
This commit is contained in:
parent
72370cb1f2
commit
3c2cb400c5
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class JetsonNano:
|
|||
self.GPIO.output(self.RST_PIN, 0)
|
||||
self.GPIO.output(self.DC_PIN, 0)
|
||||
|
||||
self.GPIO.cleanup()
|
||||
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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue