* 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 <firstname.lastname@example.org> * Remove logging import Co-authored-by: Jesse Hills <email@example.com> Co-authored-by: Jesse Hills <firstname.lastname@example.org>
|14 hours ago|
|component_tests||3 days ago|
|test_packages||1 year ago|
|unit_tests||3 days ago|
|.gitignore||3 years ago|
|README.md||4 months ago|
|custom.h||4 months ago|
|dummy_main.cpp||3 days ago|
|test1.yaml||14 hours ago|
|test2.yaml||15 hours ago|
|test3.yaml||16 hours ago|
|test4.yaml||3 days ago|
|test5.yaml||3 days ago|
Tests for ESPHome
This directory contains some tests for ESPHome.
At the moment, all the tests only work by simply executing
esphome over some YAML files that are made to test
whether the yaml gets converted to the proper C++ code.
Of course this is all just very high-level and things like unit tests would be much better. So if you have time and know how to set up a unit testing framework for python, please do give it a try.
When adding entries in test_.yaml files we usually need only
one file updated, unless conflicting code is generated for
different configurations, e.g.
be tested on the same device.
Current test_.yaml file contents.