From 5adf53341cc8d9c1a8d181a7bdf25fca6032d4ed Mon Sep 17 00:00:00 2001 From: Martin Trojer Date: Wed, 13 Sep 2023 17:17:30 +0100 Subject: [PATCH 1/2] add .gitingore for __pycache__ --- RaspberryPi_JetsonNano/python/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 RaspberryPi_JetsonNano/python/.gitignore diff --git a/RaspberryPi_JetsonNano/python/.gitignore b/RaspberryPi_JetsonNano/python/.gitignore new file mode 100644 index 000000000..bee8a64b7 --- /dev/null +++ b/RaspberryPi_JetsonNano/python/.gitignore @@ -0,0 +1 @@ +__pycache__ From 32b52e2e1890ef474db113ebea625e10993c8d63 Mon Sep 17 00:00:00 2001 From: Martin Trojer Date: Fri, 13 Oct 2023 16:57:19 +0100 Subject: [PATCH 2/2] we are always running on rpi --- .../python/lib/waveshare_epd/epdconfig.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py index f692f430e..b6f07d3b5 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py @@ -6,7 +6,7 @@ # *---------------- # * | This version: V1.2 # * | Date : 2022-10-29 -# * | Info : +# * | Info : # ****************************************************************************** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documnetation files (the "Software"), to deal @@ -73,7 +73,7 @@ def module_init(self): self.GPIO.setup(self.CS_PIN, self.GPIO.OUT) self.GPIO.setup(self.PWR_PIN, self.GPIO.OUT) self.GPIO.setup(self.BUSY_PIN, self.GPIO.IN) - + self.GPIO.output(self.PWR_PIN, 1) # SPI device, bus = 0, device = 0 @@ -145,9 +145,9 @@ def module_init(self): self.GPIO.setup(self.CS_PIN, self.GPIO.OUT) self.GPIO.setup(self.PWR_PIN, self.GPIO.OUT) self.GPIO.setup(self.BUSY_PIN, self.GPIO.IN) - + self.GPIO.output(self.PWR_PIN, 1) - + self.SPI.SYSFS_software_spi_begin() return 0 @@ -208,7 +208,7 @@ def module_init(self): self.GPIO.setup(self.BUSY_PIN, self.GPIO.IN) self.GPIO.output(self.PWR_PIN, 1) - + # SPI device, bus = 0, device = 0 self.SPI.open(2, 0) self.SPI.max_speed_hz = 4000000 @@ -230,7 +230,7 @@ def module_exit(self): self.GPIO.cleanup([self.RST_PIN, self.DC_PIN, self.CS_PIN, self.BUSY_PIN], self.PWR_PIN) -if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): +if True: #os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): implementation = RaspberryPi() elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): implementation = SunriseX3()