Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ESP32 restriction #13

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.esphome/
.vscode/
tests/.gitignore
/secrets.yaml
*/__pycache__/
*.pyc
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions components/hub75_matrix_display/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
CONF_WIDTH,
)

DEPENDENCIES = ["esp32"]

MATRIX_ID = "matrix_id"
CHAIN_LENGTH = "chain_length"
BRIGHTNESS = "brightness"
Expand Down
10 changes: 0 additions & 10 deletions tests/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions tests/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading