Merge branch 'master' into jetson-spidev
This commit is contained in:
commit
3a8ee3d590
994 changed files with 357649 additions and 78242 deletions
|
|
@ -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 ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue