Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RaspberryPi_JetsonNano/python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
12 changes: 6 additions & 6 deletions RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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()
Expand Down