Python LT8900 via SPI

Check-in [26c1481a7c]
Login
Overview
Comment:Improved chance of logging command working
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 26c1481a7c848a360bc1891234b3a49ad8d27da1891b4822e5127f83f6b3e290
User & Date: rkeene on 2020-04-29 00:51:48
Other Links: manifest | tags
Context
2020-04-29
00:52
lt8900_spi v2.1 check-in: abda0e48a2 user: rkeene tags: 2.1, trunk
00:51
Improved chance of logging command working check-in: 26c1481a7c user: rkeene tags: trunk
00:50
Made logging configurable check-in: c40c4d5a6c user: rkeene tags: trunk
Changes

Modified lt8900_spi/__init__.py from [0b8ba9ffef] to [df06239930].

229
230
231
232
233
234
235
236
237
238
239
240
241
242
243

		return None

	def __del__(self):
		self._spi.close()

	def _debug(self, message):
		if 'debug_log_command' in self._config:
			self._config['debug_log_command'](message)
		return None

	def _reset_device(self):
		if self._config is not None:
			if self._config['reset_command'] is not None:
				return self._config['reset_command']()







|







229
230
231
232
233
234
235
236
237
238
239
240
241
242
243

		return None

	def __del__(self):
		self._spi.close()

	def _debug(self, message):
		if self._config is not None and 'debug_log_command' in self._config:
			self._config['debug_log_command'](message)
		return None

	def _reset_device(self):
		if self._config is not None:
			if self._config['reset_command'] is not None:
				return self._config['reset_command']()