Merge pull request #302 from aceinnolab/hotfix/#301
fix not-updating problem
This commit is contained in:
		| @@ -107,22 +107,22 @@ class RaspberryPi: | |||||||
|         self.SPI.mode = 0b00 |         self.SPI.mode = 0b00 | ||||||
|         return 0 |         return 0 | ||||||
|  |  | ||||||
|     def module_exit(self): |     def module_exit(self, cleanup=False): | ||||||
|         logger.debug("spi end") |         logger.debug("spi end") | ||||||
|         self.SPI.close() |         self.SPI.close() | ||||||
|  |  | ||||||
|         self.GPIO_RST_PIN.off() |         self.GPIO_RST_PIN.off() | ||||||
|         self.GPIO_DC_PIN.off() |         self.GPIO_DC_PIN.off() | ||||||
|         self.GPIO_PWR_PIN.off() |         self.GPIO_PWR_PIN.off() | ||||||
|  |         logger.debug("close 5V, Module enters 0 power consumption ...") | ||||||
|  |  | ||||||
|  |         if cleanup: | ||||||
|             self.GPIO_RST_PIN.close() |             self.GPIO_RST_PIN.close() | ||||||
|             self.GPIO_DC_PIN.close() |             self.GPIO_DC_PIN.close() | ||||||
|             # self.GPIO_CS_PIN.close() |             # self.GPIO_CS_PIN.close() | ||||||
|             self.GPIO_PWR_PIN.close() |             self.GPIO_PWR_PIN.close() | ||||||
|             self.GPIO_BUSY_PIN.close() |             self.GPIO_BUSY_PIN.close() | ||||||
|  |  | ||||||
|         logger.debug("close 5V, Module enters 0 power consumption ...") |  | ||||||
|  |  | ||||||
|  |  | ||||||
| class JetsonNano: | class JetsonNano: | ||||||
|     # Pin definition |     # Pin definition | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user