forked from trekawek/aqi-lcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
82 lines (73 loc) · 1.68 KB
/
platformio.ini
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
;PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = lcd
[env]
platform = [email protected]
board = d1_mini
framework = arduino
upload_speed = 1000000
monitor_speed = 115200
[env:lcd]
lib_deps =
build_flags =
-DFRONTEND_LCD
-DUSER_SETUP_LOADED
-DILI9341_DRIVER
-DTFT_CS=D8
-DTFT_DC=D1
-DTFT_RST=-1
-DTOUCH_CS=D2
-DTFT_MISO=D6
-DTFT_MOSI=D7
-DTFT_SCLK=D5
-DBACKLIGHT_PIN=D3
; Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
-DLOAD_GLCD
; FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
-DLOAD_GFXFF
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
[env:led]
lib_deps =
Adafruit [email protected]
build_flags =
-DFRONTEND_LED
-DLED_PIN=2 # D4 on wemos
; HUB75 LED MATRIX
[env:led-matrix]
lib_deps =
2dom/PxMatrix LED MATRIX library@^1.8.2
adafruit/Adafruit GFX Library@^1.10.7
adafruit/Adafruit BusIO@^1.7.2
SPI
Wire
build_flags =
-DFRONTEND_LED_MATRIX
-DP_LAT=16
-DP_A=5
-DP_B=4
-DP_C=15
-DP_OE=2
-DROW_PATERN=4
-DMATRIX_WIDTH=64
-DMATRIX_HEIGHT=16