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 37d998ef..a954f27c 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 37d998ef..a954f27c 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 37d998ef..a954f27c 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 37d998ef..a954f27c 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 37d998ef..a954f27c 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 37d998ef..a954f27c 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: