-
Notifications
You must be signed in to change notification settings - Fork 7
/
sdkconfig.defaults.esp32c3
51 lines (41 loc) · 1.24 KB
/
sdkconfig.defaults.esp32c3
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
# Configuration for use with T-01C3: https://github.com/Xinyuan-LilyGO/T-01C3
#
# Pins:
# Pin# from schematic(GPIO#) - Name on (ESP-01) breakout board - Name on T-01C3 board
# 1(--) - GND - GND
# 2(02) - GP2 - IO2 > Optional ADC use for battery level
# 3(09) - GP0 - IO9 > Motor on/off (active low)
# 4(20) - RXD - RX > Bus send
# 5(21) - TXD - TX > Light on/off (active high) + jumper for debug
# 6(08) - CHPD - IO8 > Bus receive
# 7(--) - RST - RST
# 8(--) - VCC - 3.3V
CONFIG_ION_BUTTON=n
CONFIG_ION_LED_PIN=3
CONFIG_ION_UART=1
CONFIG_ION_RXD=8
CONFIG_ION_TXD=20
CONFIG_ION_LIGHT=y
CONFIG_ION_LIGHT_PIN=21
CONFIG_ION_LIGHT_PIN_INVERTED=n
CONFIG_ION_RELAY=y
CONFIG_ION_RELAY_PIN=9
CONFIG_ION_RELAY_PIN_INVERTED=y
CONFIG_ESP32C3_DEFAULT_CPU_FREQ_160=y
CONFIG_ION_ADC=y
# ADC channel 2 is pin 2
CONFIG_ION_ADC_CHAN=2
# Voltage dividers with a factor of 16 tend to be easy to find resistors for:
# 150k & 10k
# 180k & 12k
# 240k & 16k
# 270k & 18k
# 300k & 20k
# 330k & 22k
# 360k & 24k
# The scale of the divider, times 1000
CONFIG_ION_DIVIDER_SCALE=16000
# Consider 32V (3.2V/cell for 10s) empty
CONFIG_ION_ADC_EMPTY_MV=32000
# Consider 42V (4.2V/cell for 10s) full
CONFIG_ION_ADC_FULL_MV=42000