-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support inverted display on ST7735 (#105)
* Update device.py try to init the odd version of st7735 * Change timed_reset -> hard_reset; add note about moving that capability into luma.core instead * Removed timed/hard reset Longer term, this extended reset should be implemented directly in the serial interface in luma.core. I will add that as a separate commit ```python # FIXME: longer term, this pause when resetting should be moved into luma.core's # serial implementation if hard_reset: spi = self._serial_interface spi._gpio.output(spi._RST, spi._gpio.LOW) time.sleep(0.1) spi._gpio.output(spi._RST, spi._gpio.HIGH) time.sleep(0.1) self.command(0x01) time.sleep(0.1) else: ``` * Inline display inversion * Formatting * PEP8 fix Co-authored-by: Richard Hull <rm_hull@yahoo.co.uk> Co-authored-by: Thijs Triemstra <info@collab.nl>
- Loading branch information
1 parent
ebc401c
commit 2fb5230
Showing
1 changed file
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters