-
Notifications
You must be signed in to change notification settings - Fork 0
/
board_ttgo_t-display.yaml
43 lines (39 loc) · 1.12 KB
/
board_ttgo_t-display.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
---
esphome:
platformio_options:
# Unset option set by https://github.com/espressif/arduino-esp32/blob/2.0.5/platform.txt#L33
build_unflags:
- -std=gnu++11
# Enable C++17
build_flags:
- -std=gnu++1z
on_boot:
priority: -100
then:
lambda: id(ledc_display_backlight).set_level(1.0);
esp32:
board: esp32dev
framework:
type: arduino
# This version should correspond to the Arduino support package version in
# https://github.com/platformio/platform-espressif32/releases for the below
# platform_version
version: 2.0.11
# C++17 requires GCC ≥8 toolchain from a newer PlatformIO ESP32 package
platform_version: 6.4.0
output:
- platform: ledc
pin: 4
id: ledc_display_backlight
frequency: 19531Hz # 12-bit depth
light:
- platform: monochromatic
name: "${friendly_shortname} Display Backlight"
id: light_display_backlight
output: ledc_display_backlight
# Control and transition in perceptual brightness space, not duty cycle
gamma_correct: 2.8 # Default value, but make it explicit
spi:
- id: spi_bus_0
clk_pin: 18
mosi_pin: 19