From 0f31962278976f102bffb6262871851fc55ce3b7 Mon Sep 17 00:00:00 2001 From: missionfloyd Date: Tue, 4 Feb 2025 18:14:06 -0700 Subject: [PATCH] Fix dependencies on raspbian bookworm --- .../2in13_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py | 2 ++ .../2in15_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py | 2 ++ .../2in15_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py | 2 ++ .../3in52_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py | 2 ++ .../4inch_e-Paper_E/RaspberryPi_JetsonNano/python/setup.py | 2 ++ RaspberryPi_JetsonNano/python/setup.py | 2 ++ 6 files changed, 12 insertions(+) diff --git a/E-paper_Separate_Program/2in13_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py b/E-paper_Separate_Program/2in13_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py index 37d998efc..a954f27c8 100644 --- a/E-paper_Separate_Program/2in13_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py +++ b/E-paper_Separate_Program/2in13_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py @@ -5,6 +5,8 @@ if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): dependencies += ['RPi.GPIO', 'spidev'] +elif os.path.exists('/sys/bus/platform/drivers/rpi-gpiomem'): + dependencies += ['rpi-lgpio', 'spidev'] elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): dependencies += ['Hobot.GPIO', 'spidev'] else: diff --git a/E-paper_Separate_Program/2in15_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py b/E-paper_Separate_Program/2in15_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py index 37d998efc..a954f27c8 100644 --- a/E-paper_Separate_Program/2in15_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py +++ b/E-paper_Separate_Program/2in15_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py @@ -5,6 +5,8 @@ if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): dependencies += ['RPi.GPIO', 'spidev'] +elif os.path.exists('/sys/bus/platform/drivers/rpi-gpiomem'): + dependencies += ['rpi-lgpio', 'spidev'] elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): dependencies += ['Hobot.GPIO', 'spidev'] else: diff --git a/E-paper_Separate_Program/2in15_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py b/E-paper_Separate_Program/2in15_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py index 37d998efc..a954f27c8 100644 --- a/E-paper_Separate_Program/2in15_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py +++ b/E-paper_Separate_Program/2in15_e-Paper_G/RaspberryPi_JetsonNano/python/setup.py @@ -5,6 +5,8 @@ if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): dependencies += ['RPi.GPIO', 'spidev'] +elif os.path.exists('/sys/bus/platform/drivers/rpi-gpiomem'): + dependencies += ['rpi-lgpio', 'spidev'] elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): dependencies += ['Hobot.GPIO', 'spidev'] else: diff --git a/E-paper_Separate_Program/3in52_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py b/E-paper_Separate_Program/3in52_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py index 37d998efc..a954f27c8 100644 --- a/E-paper_Separate_Program/3in52_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py +++ b/E-paper_Separate_Program/3in52_e-Paper_B/RaspberryPi_JetsonNano/python/setup.py @@ -5,6 +5,8 @@ if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): dependencies += ['RPi.GPIO', 'spidev'] +elif os.path.exists('/sys/bus/platform/drivers/rpi-gpiomem'): + dependencies += ['rpi-lgpio', 'spidev'] elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): dependencies += ['Hobot.GPIO', 'spidev'] else: diff --git a/E-paper_Separate_Program/4inch_e-Paper_E/RaspberryPi_JetsonNano/python/setup.py b/E-paper_Separate_Program/4inch_e-Paper_E/RaspberryPi_JetsonNano/python/setup.py index 37d998efc..a954f27c8 100644 --- a/E-paper_Separate_Program/4inch_e-Paper_E/RaspberryPi_JetsonNano/python/setup.py +++ b/E-paper_Separate_Program/4inch_e-Paper_E/RaspberryPi_JetsonNano/python/setup.py @@ -5,6 +5,8 @@ if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): dependencies += ['RPi.GPIO', 'spidev'] +elif os.path.exists('/sys/bus/platform/drivers/rpi-gpiomem'): + dependencies += ['rpi-lgpio', 'spidev'] elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): dependencies += ['Hobot.GPIO', 'spidev'] else: diff --git a/RaspberryPi_JetsonNano/python/setup.py b/RaspberryPi_JetsonNano/python/setup.py index 37d998efc..a954f27c8 100644 --- a/RaspberryPi_JetsonNano/python/setup.py +++ b/RaspberryPi_JetsonNano/python/setup.py @@ -5,6 +5,8 @@ if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'): dependencies += ['RPi.GPIO', 'spidev'] +elif os.path.exists('/sys/bus/platform/drivers/rpi-gpiomem'): + dependencies += ['rpi-lgpio', 'spidev'] elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'): dependencies += ['Hobot.GPIO', 'spidev'] else: