-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm-clock-esp32-s3-jc3248w535c.yaml
130 lines (115 loc) · 2.44 KB
/
alarm-clock-esp32-s3-jc3248w535c.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
# Automatically add the mac address to the name
# so you can use a single firmware for all devices
name_add_mac_suffix: true
platformio_options:
board_build.flash_mode: dio
esp32:
board: esp32-s3-devkitc-1
flash_size: 16MB
framework:
type: esp-idf
version: recommended
psram:
mode: octal
speed: 80MHz
spi:
- type: quad
clk_pin: 47
data_pins: [21, 48, 40, 39]
i2c:
- sda: 4
scl: 8
i2s_audio:
i2s_lrclk_pin: 2
i2s_bclk_pin: 42
speaker:
- platform: i2s_audio
id: speaker_main
dac_type: external
i2s_dout_pin: 41
sample_rate: 48000
channel: mono
media_player:
- platform: speaker
id: speaker_media_player
name: "Media Player"
speaker: speaker_main
sample_rate: 48000
files:
- id: alarm_music
file: alarm-clock/music/alarm-music.flac
external_components:
- source: github://pr#7672
components:
- audio
- speaker
- i2s_audio
- media_player
output:
- id: gpio_backlight_pwm
platform: ledc
pin: 1
light:
- id: display_backlight
name: Backlight
platform: monochromatic
output: gpio_backlight_pwm
restore_mode: ALWAYS_ON
- platform: esp32_rmt_led_strip
id: light_daylight
rgb_order: GRB
pin: GPIO43
num_leds: 24
chipset: ws2812
name: "Light"
on_turn_on:
- lvgl.widget.update:
id: ui_daylight_state
state:
checked: true
on_turn_off:
- lvgl.widget.update:
id: ui_daylight_state
state:
checked: false
display:
- id: main_display
platform: qspi_dbi
dimensions:
width: 320
height: 480
model: CUSTOM
data_rate: 40MHz
rotation: 90
cs_pin:
number: 45
ignore_strapping_warning: true
draw_from_origin: true
update_interval: never
auto_clear_enabled: false
touchscreen:
- id: main_touchscreen
platform: axs15231
transform:
swap_xy: true
mirror_x: true
on_release:
- script.execute: resume_lvgl
sensor:
- platform: adc
pin: GPIO5
name: "Illuminance"
device_class: illuminance
unit_of_measurement: lx
update_interval: 1s
attenuation: auto
filters:
- lambda: |-
return (x / 10000.0) * 2000000.0;
packages:
core: !include alarm-clock/core.yaml
hardware: !include alarm-clock/hardware_core.yaml
ui: !include alarm-clock/ui.yaml