1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Add SSD1305 support to SSD1306 integration along with few new options (#1902)

* Add serveral options for SSD1306 integration
* Add SSD1305 support
  (SSD1305 is similar to SSD1306, it seems SSD1305 has
  brightness and color register but does not have charge pump)
* Add some description when manipulating registers
* Add flip, offset and invert option to get more compatibility
  with various display modules
* Fix typo `setup_ssd1036' -> `setup_ssd1306'

* Add SSD1306 brightness validation tip

* Add more description, limit offset range

* Changes according to linter

* Fix test

* Raise error instead of using warning

* Fix wrong logic

* Remove logger

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>

* Remove logging import

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
ZJY
2021-09-22 19:47:41 +08:00
committed by GitHub
parent 8bebf138ee
commit 66761ff340
8 changed files with 159 additions and 27 deletions

View File

@@ -2072,7 +2072,7 @@ display:
reset_pin: GPIO23
address: 0x3C
id: display1
brightness: 60%
contrast: 60%
pages:
- id: page1
lambda: |-