diff --git a/.gitignore b/.gitignore index 67748fa..4038175 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.esphome/ .vscode/ +tests/.gitignore /secrets.yaml */__pycache__/ *.pyc diff --git a/README.md b/README.md index 976f9e3..74221e1 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,6 @@ The custom component can be added to a yaml configuration by adding the external esphome: name: matrix-display friendly_name: Matrix Display - platformio_options: - lib_deps: - - SPI - - Wire - - Adafruit BusIO - - adafruit/Adafruit GFX Library - - https://github.com/TillFleisch/ESP32-HUB75-MatrixPanel-DMA#optional_logging external_components: - source: github://TillFleisch/ESPHome-HUB75-MatrixDisplayWrapper@main @@ -42,7 +35,7 @@ esp32: type: arduino ``` -Note that the library dependencies are required and that the component will only compile on ESP32-based devices. +Note that the component will only compile on ESP32-based devices. An example configuration can be found [here](example.yaml). ## Matrix Display diff --git a/components/hub75_matrix_display/display.py b/components/hub75_matrix_display/display.py index ee9b250..8407474 100644 --- a/components/hub75_matrix_display/display.py +++ b/components/hub75_matrix_display/display.py @@ -10,6 +10,8 @@ CONF_WIDTH, ) +DEPENDENCIES = ["esp32"] + MATRIX_ID = "matrix_id" CHAIN_LENGTH = "chain_length" BRIGHTNESS = "brightness" diff --git a/tests/base.yaml b/tests/base.yaml index b43851b..336d908 100644 --- a/tests/base.yaml +++ b/tests/base.yaml @@ -9,16 +9,6 @@ external_components: type: local path: ../components -logger: - baud_rate: 0 - -uart: - id: bus - tx_pin: TX - rx_pin: RX - baud_rate: 19200 - stop_bits: 2 - display: - platform: hub75_matrix_display id: matrix diff --git a/tests/full.yaml b/tests/full.yaml index a73d431..53297b6 100644 --- a/tests/full.yaml +++ b/tests/full.yaml @@ -9,16 +9,6 @@ external_components: type: local path: ../components -logger: - baud_rate: 0 - -uart: - id: bus - tx_pin: TX - rx_pin: RX - baud_rate: 19200 - stop_bits: 2 - display: - platform: hub75_matrix_display id: matrix