Merge branch 'master' into jetson-spidev

This commit is contained in:
missionfloyd 2021-08-11 00:42:10 -06:00 committed by GitHub
commit 3a8ee3d590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
994 changed files with 357649 additions and 78242 deletions

View file

@ -40,6 +40,8 @@ DC_PIN = 25
CS_PIN = 8
BUSY_PIN = 24
logger = logging.getLogger(__name__)
SPI = spidev.SpiDev()
def digital_write(pin, value):
@ -72,13 +74,13 @@ def module_init():
return 0
def module_exit():
logging.debug("spi end")
logger.debug("spi end")
SPI.close()
logging.debug("close 5V, Module enters 0 power consumption ...")
logger.debug("close 5V, Module enters 0 power consumption ...")
GPIO.output(RST_PIN, 0)
GPIO.output(DC_PIN, 0)
GPIO.cleanup()
### END OF FILE ###
### END OF FILE ###